public void Execute()
 {
     Idle();
     if (boss.Target != null)
     {
         boss.ChangeState(new PatrolState());
     }
 }
Exemple #2
0
 public void Execute()
 {
     Patrol();
     boss.Move();
     if (boss.Target != null)
     {
         boss.ChangeState(new RangeState());
     }
 }
Exemple #3
0
 public void Execute()
 {
     if (boss.Target != null)
     {
         boss.Move();
         ThrowKnife();
     }
     else
     {
         boss.ChangeState(new IdleState());
     }
 }