From d5c2c0e445f02c5cda6fd0f02bf45e5f81ae99c3 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 6 Feb 2025 21:15:17 +0800 Subject: [PATCH] game: removing unused function --- SSLR/Assets/Scripts/NPCMovementRework.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/SSLR/Assets/Scripts/NPCMovementRework.cs b/SSLR/Assets/Scripts/NPCMovementRework.cs index bd52798..466d3a6 100644 --- a/SSLR/Assets/Scripts/NPCMovementRework.cs +++ b/SSLR/Assets/Scripts/NPCMovementRework.cs @@ -18,10 +18,6 @@ public class NpcMovementRework : MonoBehaviour public NavMeshAgent agent; public Transform desk; - public float walkRange; - public LayerMask waitingArea; - public LayerMask despawnArea; - public Vector3 roamingPoint; public Animator animator; private static readonly int IsSitting = Animator.StringToHash("isSitting"); private static readonly int Speed = Animator.StringToHash("Speed"); @@ -55,16 +51,7 @@ public class NpcMovementRework : MonoBehaviour agent.SetDestination(desk.position); } - public void Wait() - { - Debug.Log("walking"); - if (animator.GetBool(IsSitting)) - { - animator.SetBool(IsSitting,false); - } - agent.SetDestination(roamingPoint); - - } + public IEnumerator SitDown() {