Exemple #1
0
 public void OnSoundEvent(SoundEvent e)
 {
     if (SoundHandler != null)
     {
         SoundHandler(e);
     }
 }
Exemple #2
0
 public void OnSoundEvent(SoundEvent args)
 {
     if (SoundHandler != null)
     {
         SoundHandler(args);
     }
 }
        public void PlaySound(SoundEvent e)
        {
            string assetName = "Audio/" + e.Name;

            if (e is SFXEvent)
            {
                PlaySoundEffect(assetName);
            }
            else
            {
                PlayBGM(assetName, false);
            }
        }