public override void Start() { base.Start(); moveState = new E2_MoveState(this, stateMachine, "move", moveStateData, this); idleState = new E2_IdleState(this, stateMachine, "idle", idleStateDate, this); playerDetectedState = new E2_PlayerDetectedState(this, stateMachine, "playerDetected", playerDetectedStateData, this); miliAttackState = new E2_MiliAttackState(this, stateMachine, "miliAttack", miliAttackPosition, miliAttackStateData, this); lookForPlayerState = new E2_LookForPlayerState(this, stateMachine, "lookForPlayer", lookForPlayerStateData, this); stunState = new E2_StunState(this, stateMachine, "stun", stunStateData, this); deadState = new E2_DeadState(this, stateMachine, "dead", deadStateData, this); stateMachine.initialize(moveState); }
public override void Start() { base.Start(); moveState = new E2_MoveState(this, stateMachine, "move", moveStateData, this); idleState = new E2_IdleState(this, stateMachine, "idle", idleStateData, this); playerDetectedState = new E2_PlayerDetectedState(this, stateMachine, "playerDetected", playerDetectedStateData, this); meleeAttackState = new E2_MeleeAttackState(this, stateMachine, "meleeAttack", meleeAttackPosition, meleeAttackStateData, this); lookForPlayerState = new E2_LookForPlayerState(this, stateMachine, "lookForPlayer", lookForPlayerStateData, this); stunState = new E2_StunState(this, stateMachine, "stun", stunStateData, this); deadState = new E2_DeadState(this, stateMachine, "dead", deadStateData, this); dodgeState = new E2_DodgeState(this, stateMachine, "dodge", dodgeStateData, this); rangedAttackState = new E2_RangeAttackState(this, stateMachine, "rangedAttack", rangedAttackPosition, rangedAttackStateData, this); stateMachine.Initialize(moveState); }