Exemplo n.º 1
0
    public static ActorTwo_StateOne Instance()
    {
        if (instance == null)
        {
            instance = new ActorTwo_StateOne();
        }

        return(instance);
    }
Exemplo n.º 2
0
    // 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);
    }