diff --git a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcMovement.cs b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcMovement.cs index 64a0f0590..1e691ffd3 100644 --- a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcMovement.cs +++ b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcMovement.cs @@ -7,6 +7,13 @@ public class RestaurantNpcMovement : RestaurantCharacterMovement, IAiMovement { private IAstarAI _iAstarAi; + private const int MaxRandomMoveAttempts = 1000; + + public Vector3 CurrentPosition => _iAstarAi.position; + public Vector3 Destination => _iAstarAi.destination; + public float CurrentSpeed => _iAstarAi.velocity.magnitude; + public bool IsMoving => !_iAstarAi.isStopped && _iAstarAi.hasPath; + protected override void Awake() { base.Awake(); @@ -14,13 +21,6 @@ protected override void Awake() _iAstarAi = GetComponent(); Debug.Assert(_iAstarAi != null, "_iAstarAi is null"); } - - private const int MaxRandomMoveAttempts = 1000; - - public Vector3 CurrentPosition => _iAstarAi.position; - public Vector3 Destination => _iAstarAi.destination; - public float CurrentSpeed => _iAstarAi.velocity.magnitude; - public bool IsMoving => !_iAstarAi.isStopped && _iAstarAi.hasPath; public void EnableMove() {