protected void Update() { if (!_isInitialized) { return; } CurrentWaypoint = GetWaypoint(); if (CurrentWaypoint != null) { Vector3 direction = CurrentWaypoint.Position - Position; _mover.MoveToDirection(direction); _mover.RotateTowardPosition(CurrentWaypoint.Position); } }