public void Message(string message, object[] parameters) { if (message.Equals("Up")) { uiCtr.ShowIceboxUp(); } else if (message.Equals("Down")) { uiCtr.ShowIceboxDown(); } else if (message.Equals("Out")) { GameStateManager.Instance().FSM.ChangeState(GameStateKitchen.Instance()); } else if (message.Equals("ShowBrainAniOver")) { Debug.Log("show brain ani over"); GameData.HasBrain = true; CursorManager.SetCursor(CursorManager.CursorState.DEFAULT); GameStateManager.Instance().FSM.GlobalState.Message("GetBrain", null); } else if (message.Equals("ShowBrain")) { if (!GameData.HasBrain) { CursorManager.SetCursor(CursorManager.CursorState.DEFAULT); uiCtr.ShowBrainAnimation(); GameData.HasBrain = true; } } }
public void Message(string message, object[] parameters) { if (message.Equals("Out")) { GameStateManager.Instance().FSM.ChangeState(GameStateKitchen.Instance()); } else if (message.Equals("ShowStomachAniOver")) { GameData.HasStomach = true; GameStateManager.Instance().FSM.GlobalState.Message("GetStomach", null); } }
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()); } }