public void PlaySfx(SoundManager.Sfx sfx) { AudioClip clip = sfxManager.getSfx(sfx); audioS.clip = clip; audioS.Play(); }
protected void PlaySfx(SoundManager.Sfx sfx) { AudioClip clip = sManager.getSfx(sfx); audioSource.clip = clip; audioSource.Play(); }
public void PlaySfx(SoundManager.Sfx soundNode) { var node = GetNode <AudioStreamPlayer>(soundNode.ToString("G")); if (node.Playing) { node.Stop(); } node.Play(); }