public void AddWaitUntilFinishedInstruction(WaitUntilAudioClipFinished i) { if (!m_WaitUntilFinishedInstructions.Contains(i)) { m_WaitUntilFinishedInstructions.Add(i); } }
public WaitUntilAudioClipFinished WaitForAudioClipFinished() { WaitUntilAudioClipFinished w = new WaitUntilAudioClipFinished(m_Player); if (m_Player != null) { m_Player.AddWaitUntilFinishedInstruction(w); } return(w); }