Exemple #1
0
 /// <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();
     }
 }
Exemple #2
0
 public void ResumeBGM()
 {
     AudioSourceBGM.UnPause();
 }