private void DestroyGameObject() { actionTimeout = null; OnDestroy.Invoke(); InteractingAgents.ForEach(agent => agent.GetComponent <HitAnimation>().PlayHitAnimation(gameObject)); EndInteraction(InteractingAgents); }
public override void Reset() { IsInteracting = false; IsComplete = false; actionTimeout = null; OnReset.Invoke(); InteractingAgents.Clear(); }