public void Volume(float v) { LS_Sound sVolume = Array.Find(sounds, sounds => sounds.volume == v); foreach (LS_Sound sV in sounds) { sV.source.volume = v; } }
public void Stop(string name) { LS_Sound s = Array.Find(sounds, sound => sound.name == name); s.source.Stop(); }
public void Play(string name) { LS_Sound s = Array.Find(sounds, sound => sound.name == name); s.source.Play(); }