예제 #1
0
 void Update()
 {
     if (actionTimeout != null)
     {
         actionTimeout.Tick(Time.deltaTime);
         if (!interactingAgent.NavMeshAgent.IsDestinationReached())
         {
             actionTimeout = null;
             TimerIconAnimation.StopAnim();
         }
     }
 }
예제 #2
0
 void Update()
 {
     if (actionTimeout != null && IsInteracting)
     {
         actionTimeout.Tick(Time.deltaTime);
         if (IsComplete && InteractingPlayer != null && !InteractingPlayer.NavMeshAgent.IsDestinationReached())
         {
             actionTimeout = null;
             TimerIconAnimation.StopAnim();
         }
     }
 }