Beispiel #1
0
 void Awake()
 {
     m_BattleFSM.Initialize(Callback_ReadyState,
                            Callback_WaveState,
                            Callback_GameState,
                            Callback_ResultState);
 }
Beispiel #2
0
 public void Initialize()
 {
     m_HairMgr.Initialize();
     m_HudUI.Initialize();
     m_GameUI.Initialize();
     BtlFSM.Initialize(OnEnter_ReadyState, OnEnter_WaveState, OnEnter_GameState);
 }
    private void Start()
    {
        m_BattleFSM.Initialize(Callback_ReadyEnter, Callback_WaveEnter, Callback_GameEnter, Callback_ResultEnter);
        GameMgr.Inst.SetGameScene(this);

        m_BattleFSM.SetReadyState();
    }
Beispiel #4
0
 public void InitFSM()
 {
     if (m_BattleFSM == null)
     {
         m_BattleFSM = new BattleFSM();
         m_BattleFSM.Initialize(Callback_ReadyEnter, Callback_WaveEnter, Callback_GameEnter, Callback_ResultEnter);
     }
 }
Beispiel #5
0
    void Start()
    {
        GameMgr.Inst.SetGameScene(this);
        m_BattleFSM.Initialize(OnCallback_ReadyEnter,
                               OnCallback_WaveEnter,
                               OnCallback_GameEnter,
                               OnCallback_ResultEnter);
        m_BattleFSM.SetCallback_GameStateOnExit(OnCallback_GameOnExit);

        m_BattleFSM.SetReadyState();
    }
Beispiel #6
0
 public void InitBattleFsm()
 {
     this.CloseBattleFsm();
     battleFsm = new BattleFSM();
     battleFsm.Initialize();
 }