예제 #1
0
 public override void Pause(bool isPause)
 {
     if (m_NowPlayAudio != null && m_NowPlayAudio.GetAudioSource() != null)
     {
         m_NowPlayAudio.Pause(isPause);
     }
 }
예제 #2
0
 public override void Pause(bool isPause)
 {
     if (m_AudioDic != null && m_AudioDic.Count > 0)
     {
         foreach (KeyValuePair <int, AudioActionBase> pair in m_AudioDic)
         {
             AudioActionBase action = pair.Value;
             if (action != null && action.GetAudioSource() != null)
             {
                 action.Pause(isPause);
             }
         }
     }
 }
예제 #3
0
 public override void Stop(int stopType = 0)
 {
     if (m_AudioQueue != null)
     {
         m_IsStop = true;
         AudioActionBase action = null;
         while ((action = DequeueAudio()) != null)
         {
             if (action != null && action.GetAudioSource() != null)
             {
                 action.Stop();
             }
         }
     }
     this.Destroy();
 }