public void Message(string message, object[] parameters)
 {
     if (message.Equals("Out"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateSecondFloor.Instance());
     }
 }
Exemple #2
0
 public void Message(string message, object[] parameters)
 {
     if (message.Equals("ClothingRoom"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateClothing.Instance());
     }
     else if (message.Equals("Kitchen"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateKitchen.Instance());
     }
     else if (message.Equals("DiningRoom"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateDining.Instance());
     }
     else if (message.Equals("UndergroundGarage"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateGarage.Instance());
     }
     else if (message.Equals("SecondFloor"))
     {
         GameStateManager.Instance().FSM.ChangeState(GameStateSecondFloor.Instance());
     }
 }