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

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