Ejemplo n.º 1
0
    public void StopSoundEffect(SoundBase sound)
    {
        if (sound == null)
        {
            return;
        }

        sound.Stop();
        sound.Destroy();
        CommonObjectPools.Despawn(sound);
    }
Ejemplo n.º 2
0
 public void ClearBGSound()
 {
     for (int i = 0; i < m_ListBGAudio.Count; ++i)
     {
         SoundBase sound = m_ListBGAudio[i];
         sound.Stop();
         sound.Destroy();
         CommonObjectPools.Despawn(sound);
     }
     m_ListBGAudio.Clear();
 }