/// <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(); }
/// <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(); }