public void ToChaseState() { if (enemy.distance > enemy.chaseDistance) { enemy.StopAttackPlayer(); enemy.currentState = enemy.chaseState; } }