private SoundConfig GetSoundInfo(string soundName) { SoundConfig result = null; for (var i = 0; i < Sounds.Length; i++) { if (Sounds[i].name == soundName) { result = Sounds[i]; break; } } return(result); }
public Sound(SoundConfig soundinfo, AudioSource audioSource, AudioSourcePool audioSourcePool) { SoundConfig = soundinfo; AudioSource = audioSource; AudioSourcePool = audioSourcePool; }