public void Execute() { Idle(); if (enemy.Target != null) { enemy.ChangeState(new PatrolState()); } }
public void Execute() { Patrol(); enemy.Move(); if (enemy.Target != null) { enemy.ChangeState(new RangeState()); } }
//private Collision2D Ho; public void Execute() { if (enemy.Target != null) { enemy.TouchEdge = false; enemy.Move(); } else { enemy.ChangeState(new IdleState()); } enemyAttack(); }