public void Execute() { //Debug.Log("I am idling"); Idle(); if (enemy.Target != null) { enemy.ChangeState(new PatrolState()); } }
public void Execute() { //Debug.Log("Patroling"); Patrol(); enemy.Move(); if (enemy.Target != null) { enemy.ChangeState(new RangedState()); } }
public void Execute() { //Debug.Log("Ranged"); if (enemy.Target != null) { enemy.Move(); } else { enemy.ChangeState(new IdleState()); } }