private IEnumerator playJoystickAudio() { if (Sound.CurrentPlayingSound == runSpeedAudio) { while (Sound.CurrentPlayingSound.isPlaying) { yield return(new WaitForSeconds(0.01f)); } } Utilities.PlayAudio(Timeout.GetRepeatAudio()); yield return(new WaitForSeconds(Timeout.GetRepeatAudio().clip.length)); Timeout.StartTimers(); }
protected override void DoubleClickAction() { base.DoubleClickAction(); Utilities.PlayAudio(Timeout.GetRepeatAudio()); }