com.alicizax.unity.ui.exten.../Runtime/UXComponent/Hotkey/UXHotkeyButton.cs
陈思海 d17eaaaa8b opt
修改命名空间
2025-12-09 20:30:11 +08:00

24 lines
492 B
C#

#if INPUTSYSTEM_SUPPORT
using UnityEngine;
using UnityEngine.InputSystem;
namespace AlicizaX.UI
{
[DisallowMultipleComponent]
public class UXHotkeyButton : UXButton
{
[SerializeField] internal InputActionReference _hotKeyRefrence;
[SerializeField] internal EHotkeyPressType _hotkeyPressType;
internal void HotkeyActionTrigger()
{
if (Interactable)
{
OnSubmit(null);
}
}
}
}
#endif