public void OnSoundEvent(SoundEvent e) { if (SoundHandler != null) { SoundHandler(e); } }
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); } }