/// <summary> /// Pause or unpause current track /// </summary> /// <param name="isToPause"> Is to pause current track ? </param> public void PauseMusic(bool isToPause) { if (isToPause) { AudioSourceBGM.Pause(); } else { AudioSourceBGM.UnPause(); } }
public void ResumeBGM() { AudioSourceBGM.UnPause(); }