修复BUG

This commit is contained in:
MuHua-123
2025-09-13 15:48:27 +08:00
parent 91a40e097b
commit 63b30ebd03
5 changed files with 60 additions and 141 deletions
@@ -19,11 +19,16 @@ public class InputMenu : InputControl {
/// <summary> 鼠标左键 </summary>
public void OnMouseLeft(InputValue inputValue) {
if (inputValue.isPressed) return;
ManagerMenu.I.Close();
UIShortcutMenu.I.Close();
}
/// <summary> 鼠标右键 </summary>
public void OnMouseRight(InputValue inputValue) {
ManagerMenu.I.Open();
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
}