Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public Sound(SoundConfig soundinfo, AudioSource audioSource, AudioSourcePool audioSourcePool)
 {
     SoundConfig     = soundinfo;
     AudioSource     = audioSource;
     AudioSourcePool = audioSourcePool;
 }