Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit c1a9446

Browse files
author
Chris
committed
Removing old callback api
1 parent 666be1b commit c1a9446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workers/unity/Assets/Gamelogic/TransformReceiver.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ void OnEnable()
1919
transform.rotation = Quaternion.Euler(0.0f, 0.0f, 0.0f);
2020

2121
// Register callback for when component changes
22-
WorldTransformReader.ComponentUpdated += OnComponentUpdated;
22+
WorldTransformReader.ComponentUpdated.Add(OnComponentUpdated);
2323
}
2424

2525
void OnDisable()
2626
{
2727
// Deregister callback for when component changes
28-
WorldTransformReader.ComponentUpdated -= OnComponentUpdated;
28+
WorldTransformReader.ComponentUpdated.Remove(OnComponentUpdated);
2929
}
3030

3131
// Callback for whenever one or more property of the WorldTransform component is updated

0 commit comments

Comments
 (0)