#if INPUTSYSTEM_SUPPORT using System; using UnityEngine; namespace AlicizaX.UI.Extension { [DisallowMultipleComponent] public class UXHotkey : MonoBehaviour { [SerializeField] private UXButton _button; [SerializeField] internal UnityEngine.InputSystem.InputActionReference _hotKeyRefrence; [SerializeField] internal EHotkeyPressType _hotkeyPressType; private void OnValidate() { _button = GetComponent(); } internal void HotkeyActionTrigger() { if (_button.Interactable) { _button.OnSubmit(null); } } } } #endif