Exemple #1
0
        public void Play(string soundName)
        {
            SoundData sound = this.findSoundByName(soundName);

            if (sound != null)
            {
                sound.Play();
            }
        }
Exemple #2
0
    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));
    }
Exemple #3
0
    public static SoundPlayObj Play(string p_table, string p_key)
    {
        SoundData _soundData = GetSoundData(p_table, p_key);

        return(_soundData.Play(_soundData.defaultVolume, _soundData.defaultLoop));
    }