public void StopAllUnnecessaryLoops() { Sound_S s = Array.Find(sounds, sound => sound.name == "Footstep Loop"); s.source.Stop(); }
public void Stop(string name) { Sound_S s = Array.Find(sounds, sound => sound.name == name); // Uses System to find the sound, fast but somewhat slow at runtime s.source.Stop(); }