Example #1
0
        void AddSound(SoundSchema sound)
        {
            if (sound == null)
            {
                return;
            }

            RegisterSound(sound.Name, sound);
        }
Example #2
0
 public AudioSource PlayBGM(SoundSchema sound, float volume = 1f, float pitch = 1f)
 {
     return(PlayBGM(sound.Clip, volume, pitch));
 }
Example #3
0
 void RegisterSound(string key, SoundSchema sound)
 {
     //Debug.Log("RegisterSound > " + key);
     _soundMap.Add(key, sound);
 }
Example #4
0
 public void Add(SoundSchema schema)
 {
     _sounds.Add(schema);
 }