WaveOculusDemoProject.Audio.SoundManager.GetSoundPath C# (CSharp) Method

GetSoundPath() public method

Gets sound path by its sound type
public GetSoundPath ( SoundType sound ) : string
sound SoundType
return string
        public string GetSoundPath(SoundType sound)
        {
            var list = this.soundDictionary[sound];
            int id = this.random.NextInt() % list.Length;
            var soundInfo = list[id];

            return soundInfo.Path;
        }