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