예제 #1
0
        public AudioClip GetAudioClip(Music music)
        {
            MusicConfiguration conf = GetMusicConfiguration(music);

            if (conf == null)
            {
                return(null);
            }

            return(conf.clip);
        }
예제 #2
0
        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;
        }