public AudioClip GetAudioClip(Music music) { MusicConfiguration conf = GetMusicConfiguration(music); if (conf == null) { return(null); } return(conf.clip); }
public void UpdateMusicConfiguration(MusicConfiguration conf) { var id = musicConfs.FindIndex((a) => { return(a.music == conf.music); }); if (id >= 0) { musicConfs.RemoveAt(id); } musicConfs.Add(conf); musicConfigurationMap[conf.music] = conf; }