예제 #1
0
 /// <summary>
 /// Updates this Binder with the current Game Object State.
 /// </summary>
 /// <param name="gameObjectState">New Game Object State.</param>
 public void UpdateGameObjectState(GameObjectStates gameObjectState)
 {
     if (gameObjectState == _currentGameObjectState)
     {
         return;
     }
     _currentGameObjectState = gameObjectState;
     SelectCurrentElement();
 }
예제 #2
0
 /// <summary>
 /// Informs an IGameObjectLifecycleSubscriber about a new Game Object State.
 /// </summary>
 /// <param name="newGameObjectState">New Game Object State.</param>
 public void OnGameObjectStateChanged(GameObjectStates newGameObjectState)
 {
     if (newGameObjectState == CurrentGameObjectState)
     {
         return;
     }
     L.D(DebugContext() + " Game Object State Changed to " + newGameObjectState);
     CurrentGameObjectState = newGameObjectState;
     UpdateBinders();
 }