com.alicizax.unity.ui.exten.../Runtime/UXComponent/Hotkey/UXHotkeyButton.cs
陈思海 32c0fc13fd 重构
1.重构UXButton
2.主Transition有UXSeletable负责 ,同时兼具导航
3.新增UXSlider  支持平滑过渡 适配手柄
4.优化部分逻辑bug
2025-12-09 15:08:41 +08:00

20 lines
463 B
C#

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