protected override void Enter() { if (!_patrolPath) { return; } if (!_patrolPath.HasClosestWaypoint) { SetClosestWaypoint(); } else { _currentWaypoint = StateData.LastWaypointIndex + 1; _waypoint = _patrolPath.GetWaypointGameObject(_currentWaypoint); SetWaypointDestination(); } base.Enter(); }