コード例 #1
0
        /// <summary>
        /// On a scale of 0 being slow, 0.5 normal, and 1 fast.
        /// </summary>
        /// <param name="soundName"></param>
        /// <param name="amount"></param>
        public void SetSoundPitch(string soundName, float amount)
        {
            ISound sound = FindSound(soundName);

            if (sound != null)
            {
                sound.SetPitch(amount);
            }
        }