Beispiel #1
0
 public void PauseClip(Constants.SoundType type, bool pause)
 {
     if (pause)
     {
         SoundTrackSource.Pause();
     }
     else
     {
         SoundTrackSource.UnPause();
     }
 }
Beispiel #2
0
 public void StopClip(Constants.SoundType type)
 {
     SoundTrackSource.Stop();
 }
Beispiel #3
0
 public void PlayClip(Constants.SoundType type)
 {
     SoundTrackSource.PlayOneShot(SoundTracks[(int)type], 1);
 }