WaveOculusDemoProject.Audio.SoundManager.GetSoundPath C# (CSharp) 메소드

GetSoundPath() 공개 메소드

Gets sound path by its sound type
public GetSoundPath ( SoundType sound ) : string
sound SoundType
리턴 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;
        }