示例#1
0
 void Start()
 {
     // set id
     SetID((int)EntityID.GameManager);
     m_StateMachine = new StateMachine <GameManager>(this);
     m_StateMachine.SetCurrentState(GameStart.Instance());
     m_StateMachine.SetGlobalStateState(GameGlobal.Instance());
 }