Ejemplo n.º 1
0
    override protected void InitState()
    {
        base.InitState();
        State wargeState = new WargIdleState();

        wargeState.Init(this);
        _stateList[eState.IDLE] = wargeState;
    }
Ejemplo n.º 2
0
    override protected void InitState()
    {
        base.InitState();
        State idleState = new WargIdleState();

        idleState.Init(this);
        _stateDictionary[eState.IDLE] = idleState;
    }
Ejemplo n.º 3
0
    protected override void InitState()
    {
        base.InitState();

        State idleState = new WargIdleState();

        idleState.Init(this);
        _stateList[eState.IDLE] = idleState;
    }
Ejemplo n.º 4
0
    protected override void InitState()
    {
        State idleState = new WargIdleState();

        idleState.Init(this);
        _stateList.Add(eState.IDLE, idleState);

        State patrolState = new PatrolState();

        patrolState.Init(this);
        _stateList.Add(eState.PATROL, patrolState);

        State chaseState = new ChaseState();

        chaseState.Init(this);
        _stateList.Add(eState.CHASE, chaseState);

        State attackState = new AttackState();

        attackState.Init(this);
        _stateList.Add(eState.ATTACK, attackState);
    }