public void PlaySound(string soundName, float volumePercent = 1)// todo refact { AudioClipController sound = null; if (GetAudioClip(soundName, out sound, volumePercent)) { sound.Play(); } }
public void PlaySound(string soundName, int count)// todo refact { AudioClipController sound = null; if (GetAudioClip(soundName, out sound)) { sound.Play(count); } }