Exemple #1
0
        /*
         * Returns the cumulative value of an axis from all Update frames since the last FixedUpdate.
         */
        public float CumulativeValue(string axis)
        {
            BufferedAxis bufferedAxis = m_nameToAxis[axis];

            return((m_isMuted && bufferedAxis.CanBeMuted) ? 0 : bufferedAxis.GetValue(false));
        }
Exemple #2
0
        /*
         * Returns the average value of an axis from all Update frames since the last FixedUpdate.
         */
        public float AverageValue(string axis)
        {
            BufferedAxis bufferedAxis = m_nameToAxis[axis];

            return((m_isMuted && bufferedAxis.CanBeMuted) ? 0 : bufferedAxis.GetValue(true));
        }