public static Sound CreateAndPlay(string url, float volume, bool looping) { Sound sound = Sound.Create(url, volume, looping); sound.Play(); return(sound); }
public bool Play() { if (_sound == null) { _sound = Sound.Create(_name, _volume, false); } _sound.Play(); return(true); }