Files
MuHua-UIElements/Assets/ModuleCore/ModuleInput/InputControl/InputMenu.cs
T
MuHua-123 4597149228 修复BUG
2025-10-11 17:27:10 +08:00

28 lines
642 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using MuHua;
/// <summary>
/// 菜单 - 输入
/// </summary>
public class InputMenu : InputControl {
protected override void ModuleInput_OnInputMode(InputMode mode) {
// throw new System.NotImplementedException();
}
#region
/// <summary> 鼠标左键 </summary>
public void OnMouseLeft(InputValue inputValue) {
if (inputValue.isPressed) return;
ShortcutMenu.I.Close();
}
/// <summary> 鼠标右键 </summary>
public void OnMouseRight(InputValue inputValue) {
ShortcutMenu.I.Open();
}
#endregion
}