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