24 lines
492 B
C#
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
|