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