override protected void InitState() { base.InitState(); State wargeState = new WargIdleState(); wargeState.Init(this); _stateList[eState.IDLE] = wargeState; }
override protected void InitState() { base.InitState(); State idleState = new WargIdleState(); idleState.Init(this); _stateDictionary[eState.IDLE] = idleState; }
protected override void InitState() { base.InitState(); State idleState = new WargIdleState(); idleState.Init(this); _stateList[eState.IDLE] = idleState; }
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); }