Example #1
0
        public override void Execute()
        {
            if (_objMusic != null)
            {
                AudioManager.DestroyAudio(_objMusic);
            }
//             _objMusic = AudioManager.PlaySound(_realInfo.musicName, 0, 0, 0, 0);
//             _objMusic.SetLoop(_realInfo.bLoop);
            _objMusic = AudioManager.CreateAudio(_realInfo.musicName, _realInfo.bLoop);
            _objMusic.SetVolume(_realInfo.volume);
        }
Example #2
0
 public static void ReturnFx(AudioObject audio)
 {
     if (audio != null)
     {
         m_lstAudios.Add(audio);
     }
 }
Example #3
0
        public static void DestroyAudio(AudioObject audio)
        {
            if (audio == null)
                return;

            GameObject.Destroy(audio.gameObject);
        }