예제 #1
0
 public void AddWaitUntilFinishedInstruction(WaitUntilAudioClipFinished i)
 {
     if (!m_WaitUntilFinishedInstructions.Contains(i))
     {
         m_WaitUntilFinishedInstructions.Add(i);
     }
 }
예제 #2
0
        public WaitUntilAudioClipFinished WaitForAudioClipFinished()
        {
            WaitUntilAudioClipFinished w = new WaitUntilAudioClipFinished(m_Player);

            if (m_Player != null)
            {
                m_Player.AddWaitUntilFinishedInstruction(w);
            }
            return(w);
        }