Beispiel #1
0
 void RegisterMovementCallback(IMovementObserver movementTracker)
 {
     foreach (var i in trackers)
     {
         if (i == movementTracker)
         {
             return;
         }
     }
     trackers.Add(movementTracker);
 }
Beispiel #2
0
 void Unregister(IMovementObserver movementTracker)
 {
     foreach (var i in trackers)
     {
         if (i == movementTracker)
         {
             trackers.Remove(i);
             return;
         }
     }
 }