This commit is contained in:
MuHua-123
2025-09-18 16:56:00 +08:00
parent 5d8f76b3e6
commit 7324361948
385 changed files with 22988 additions and 198 deletions
@@ -19,16 +19,11 @@ public class InputMenu : InputControl {
/// <summary> 鼠标左键 </summary>
public void OnMouseLeft(InputValue inputValue) {
if (inputValue.isPressed) return;
UIShortcutMenu.I.Close();
UIPopupManager.I.shortcutMenu.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();
UIPopupManager.I.shortcutMenu.Open();
}
#endregion
}