private void ProcessTriggerDown() { if (!m_CurrentObject) { return; } if (m_LineRenderer.enabled) { Salesman salesman = m_CurrentObject.GetComponent <Salesman>(); //Interactable interactble = m_CurrentObject.GetComponent<Interactable>(); //interactble.ChangeColor(); // Play cube's audio //if (!interactble.isAudioPlaying) // interactble.PlaySound(); //else // interactble.StopSound(); // Play salesman's audio if (!salesman.isAudioPlaying) { salesman.PlaySound(); audioPlay = true; } else { salesman.StopSound(); audioPlay = false; } } }