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