1.重构UXButton 2.主Transition有UXSeletable负责 ,同时兼具导航 3.新增UXSlider 支持平滑过渡 适配手柄 4.优化部分逻辑bug
20 lines
463 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|