public MusicChange(float time, AudioSource music, float fadeInTime, MusicStartOption option) { this.time = time; this.music = music; this.fadeInTime = fadeInTime; this.option = option; }
private void StartMusic(AudioSource music, float delay, float fadeInTime, MusicStartOption option = MusicManager.MusicStartOption.StartFromBeginning) { this.m_requestedMusic.Clear(); this.m_requestedMusic.Add(new MusicChange(Time.time + delay, music, fadeInTime, option)); }