Chatterer.chatterer.set_soundscape_clip C# (CSharp) Method

set_soundscape_clip() private method

private set_soundscape_clip ( ) : void
return void
        private void set_soundscape_clip()
        {
            //create a new List using Values from dictionary
            List<AudioClip> clips = new List<AudioClip>(dict_soundscape_samples.Values);
            aae_soundscape.clip = clips[rand.Next(0, clips.Count)];

            //get the file name for the clip
            string s = "";
            if (dict_soundscape_samples2.TryGetValue(aae_soundscape.clip, out s))
            {
                aae_soundscape_current_clip = s;
                if (debugging) Debug.Log("[CHATR] Soundscape AudioClip set :: current_clip = " + s);
            }
        }
chatterer