Ejemplo n.º 1
0
 public void UpdateAttacking()
 {
     if (needsToFollowTarget())
     {
         currentDrainLifeState = DrainLifeAttackStates.IDLE;
     }
 }
Ejemplo n.º 2
0
 public void UpdateIdle()
 {
     if (needsToFollowTarget())
     {
         currentDrainLifeState = DrainLifeAttackStates.FOLLOWING;
     }
     else
     {
         currentDrainLifeState = DrainLifeAttackStates.STARTING_ATTACK;
     }
 }
Ejemplo n.º 3
0
 public void StartAttacking(DrainLifeAttackStates previousState)
 {
     currentState = Attack.AttackStates.ATTACKING;
 }
Ejemplo n.º 4
0
 public void StartStartingAttack(DrainLifeAttackStates previousState)
 {
     currentState = Attack.AttackStates.PREATTACKING;
 }
Ejemplo n.º 5
0
 public void StartFollowing(DrainLifeAttackStates previousState)
 {
     currentState = Attack.AttackStates.RUNNING;
 }
Ejemplo n.º 6
0
 public void StartIdle(DrainLifeAttackStates previousState)
 {
     currentState = Attack.AttackStates.IDLE;
 }
Ejemplo n.º 7
0
 public override void onPreAttack()
 {
     currentDrainLifeState = DrainLifeAttackStates.ATTACKING;
 }