public static ActorTwo_StateOne Instance() { if (instance == null) { instance = new ActorTwo_StateOne(); } return(instance); }
// Use this for initialization void Start() { // set id SetID((int)EntityID.m_ActorTwo); m_pStateMachine = new StateMachine <ActorTwo>(this); m_pStateMachine.SetCurrentState(ActorTwo_StateOne.Instance()); m_pStateMachine.SetGlobalStateState(ActorTwo_GloballState.Instance()); EntityManager.Instance().RegisterEntity(this); }