Esempio n. 1
0
        /// <summary>
        /// If an button with the requested name exists, and it is of type 'RemoteButton', the button's state will be changed.
        /// </summary>
        public static void SetRemoteButtonValue(string inputConfigName, string buttonName, bool down, bool justChanged)
        {
            AxisConfiguration axisConfig = GetAxisConfiguration(inputConfigName, buttonName);

            if (axisConfig == null)
            {
                throw new ArgumentException(string.Format("A remote button named \'{0}\' does not exist in the input configuration named \'{1}\'", buttonName, inputConfigName));
            }

            axisConfig.SetRemoteButtonValue(down, justChanged);
        }
Esempio n. 2
0
        /// <summary>
        /// If an button with the requested name exists, and it is of type 'RemoteButton', the button's state will be changed.
        /// </summary>
        public static void SetRemoteButtonValue(string inputConfigName, string buttonName, bool down, bool justChanged)
        {
            AxisConfiguration axisConfig = GetAxisConfiguration(inputConfigName, buttonName);

            if (axisConfig != null)
            {
                axisConfig.SetRemoteButtonValue(down, justChanged);
            }
            else
            {
                Debug.LogError(string.Format("A remote button named \'{0}\' does not exist in the input configuration named \'{1}\'", buttonName, inputConfigName));
            }
        }