Example #1
0
 void Start()
 {
     // set id
     SetID((int)EntityID.GUIManager);
     m_StateMachine = new StateMachine <GUIManager>(this);
     m_StateMachine.SetCurrentState(GUILevel.Instance());
     m_StateMachine.SetGlobalStateState(GUIGlobal.Instance());
 }
Example #2
0
 public static GUIGlobal Instance()
 {
     if (instance == null)
     {
         instance = new GUIGlobal();
     }
     return(instance);
 }