/// <summary> /// Stop music /// </summary> public void StopMusic() { if (MusicAudioSource != null) { MusicAudioSource.Stop(); } }
/// <summary> /// Replay music /// </summary> public void ReplayMusic() { if (MusicAudioSource != null) { MusicAudioSource.Stop(); MusicAudioSource.Play(); } }