Пример #1
0
 //  player state stuff
 public PlayerGameState.PlayerGameStates GetPlayerGameState()
 {
     PlayerGameState.PlayerGameStates pgse = PlayerGameState.PlayerGameStates.Uninitialized;
     //PlayerGameState pgs = GetComponent<PlayerGameState> ();
     if (pgs != null)
     {
         pgse = pgs.curState;
     }
     return(pgse);
 }
Пример #2
0
 public void UndoState()
 {
     PlayerGameState.PlayerGameStates newState = pgs.UndoState();
     GameState.Message(this.name + " Undo previous state. New State is " + newState.ToString());
 }