コード例 #1
0
    override protected void InitState()
    {
        base.InitState();
        State wargeState = new WargIdleState();

        wargeState.Init(this);
        _stateList[eState.IDLE] = wargeState;
    }
コード例 #2
0
    override protected void InitState()
    {
        base.InitState();
        State idleState = new WargIdleState();

        idleState.Init(this);
        _stateDictionary[eState.IDLE] = idleState;
    }
コード例 #3
0
ファイル: Monster.cs プロジェクト: kooa77/UnityActions
    protected override void InitState()
    {
        base.InitState();

        State idleState = new WargIdleState();

        idleState.Init(this);
        _stateList[eState.IDLE] = idleState;
    }
コード例 #4
0
ファイル: Monster.cs プロジェクト: PhenomJ/3D_Unity_Game
    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);
    }