Files
MuHua-UIElements/Assets/ModuleCore/ModuleInput/InputControl/InputMenu.cs
T
MuHua-123 64938f1137 1
2025-11-12 10:19:42 +08:00

35 lines
934 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using MuHua;
/// <summary>
/// 菜单 - 输入
/// </summary>
public class InputMenu : InputControl {
// private UIMenuPanel menu;
protected override void ModuleInput_OnInputMode(InputMode mode) {
// throw new System.NotImplementedException();
}
#region
/// <summary> 鼠标左键 </summary>
public void OnMouseLeft(InputValue inputValue) {
if (inputValue.isPressed) return;
// UIShortcutMenu.I.Close();
}
/// <summary> 鼠标右键 </summary>
public void OnMouseRight(InputValue inputValue) {
// UIShortcutMenu.I.Add("测试1/测试11", () => { Debug.Log("测试1/测试11"); });
// UIShortcutMenu.I.Add("测试1/测试12", () => { Debug.Log("测试1/测试12"); });
// UIShortcutMenu.I.Add("测试2", () => { Debug.Log("测试2"); });
// UIShortcutMenu.I.Open();
}
#endregion
}