Пример #1
0
 public void InitFadeOut()
 {
     if (audioSoure.clip != null)
     {
         status = BGMSourceStatus.FadeOut;
     }
 }
Пример #2
0
 public void Release()
 {
     if (!audioSoure.isPlaying && audioSoure != null)
     {
         audioSoure.clip = null;
         status          = BGMSourceStatus.Slient;
     }
 }
Пример #3
0
 public void InitFadeIn(AudioClip clip)
 {
     audioSoure.clip = clip;
     status          = BGMSourceStatus.FadeIn;
     if (audioSoure.clip != null)
     {
         audioSoure.Play();
     }
 }