void AddSound(SoundSchema sound) { if (sound == null) { return; } RegisterSound(sound.Name, sound); }
public AudioSource PlayBGM(SoundSchema sound, float volume = 1f, float pitch = 1f) { return(PlayBGM(sound.Clip, volume, pitch)); }
void RegisterSound(string key, SoundSchema sound) { //Debug.Log("RegisterSound > " + key); _soundMap.Add(key, sound); }
public void Add(SoundSchema schema) { _sounds.Add(schema); }