public void OnStateUpdate()
 {
     if (!enemy.InRange())
     {
         enemy.FollowEnemy();
     }
     else
     {
         ToAttackState();
     }
 }
Example #2
0
 public void OnStateUpdate()
 {
     if (enemy.InRange())
     {
         enemy.AttackHelper();
         enemy.Attack();
     }
     else
     {
         ToFollowState();
     }
 }