/// <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); }
/// <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); }
/// <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); }