private void OnDisable() { if (Waypoint != null) { waypointProvider.ReturnWaypoint(Waypoint); Waypoint = null; } enemyPooler.ReturnToPool(this); }