public void Play(string soundName) { SoundData sound = this.findSoundByName(soundName); if (sound != null) { sound.Play(); } }
public static SoundPlayObj Play(string p_table, string p_key, float p_volume, bool p_loop) { SoundData _soundData = GetSoundData(p_table, p_key); return(_soundData.Play(p_volume, p_loop)); }
public static SoundPlayObj Play(string p_table, string p_key) { SoundData _soundData = GetSoundData(p_table, p_key); return(_soundData.Play(_soundData.defaultVolume, _soundData.defaultLoop)); }