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