예제 #1
0
    // Use this for initialization
    void Start()
    {
        FSM = new StateMachine(this);
        GameStateManager.Instance().FSM = FSM;

        FSM.ChangeState(GameStateStart.Instance());
//		FSM.GlobalState = GameGlobalState.Instance ();
//		FSM.GlobalState.Enter (FSM.Owner);
    }
 public static GameStateStart Instance()
 {
     if (null == m_instance)
     {
         lock (m_lockHelper) {
             if (null == m_instance)
             {
                 m_instance = new GameStateStart();
             }
         }
     }
     return(m_instance);
 }
 void DoRetryLevel()
 {
     GameStateManager.Instance().FSM.ChangeState(GameStateStart.Instance());
     Debug.Log("DoRetryLevel");
 }