Exemple #1
0
 public MusicChange(float time, AudioSource music, float fadeInTime, MusicStartOption option)
 {
     this.time       = time;
     this.music      = music;
     this.fadeInTime = fadeInTime;
     this.option     = option;
 }
Exemple #2
0
 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));
 }