コード例 #1
0
        /// <summary>Raised after the player presses a button on the keyboard, controller, or mouse.</summary>
        /// <param name="e">The event data.</param>
        /// <param name="isClick">Whether the button press is a click.</param>
        public void OnButtonPressed(ButtonPressedEventArgs e, bool isClick)
        {
            if (_debounceTimer > 0)
            {
                return;
            }

            _okayButton.OnButtonPressed(e, isClick);
        }
コード例 #2
0
        /// <summary>Raised after the player presses a button on the keyboard, controller, or mouse.</summary>
        /// <param name="e">The event data.</param>
        /// <param name="isClick">Whether the button press is a click.</param>
        public void OnButtonPressed(ButtonPressedEventArgs e, bool isClick)
        {
            if (_debounceTimer > 0)
            {
                return;
            }

            foreach (var button in _professionButtons)
            {
                button.OnButtonPressed(e, isClick);
            }
            _prestigeButton.OnButtonPressed(e, isClick);
            _settingsButton.OnButtonPressed(e, isClick);
        }
コード例 #3
0
 /// <summary>Raised after the player presses a button on the keyboard, controller, or mouse.</summary>
 /// <param name="e">The event data.</param>
 /// <param name="isClick">Whether the button press is a click.</param>
 public void OnButtonPressed(ButtonPressedEventArgs e, bool isClick)
 {
     _levelTenToggleButton?.OnButtonPressed(e, isClick);
 }