From 2ef865e11f3a9aa1288b3920c0803de7394fa447 Mon Sep 17 00:00:00 2001 From: NTG_Lenovo Date: Thu, 7 Aug 2025 13:16:10 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=9A=A9=20npc=20=EC=9B=80=EC=A7=81?= =?UTF-8?q?=EC=9E=84=20=ED=82=84=EB=9E=98=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Npc/RestaurantNpcMovement.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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() {