private void OnEnable() { if (EnemyPath.points == null) { return; } transform.position = EnemyPath.GetFirstPoint(); target = EnemyPath.GetNextPoint(0); currentPoint = 1; }