增加快捷菜单
This commit is contained in:
@@ -2,20 +2,28 @@ 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;
|
||||
ManagerMenu.I.Close();
|
||||
}
|
||||
/// <summary> 鼠标右键 </summary>
|
||||
public void OnMouseRight(InputValue inputValue) {
|
||||
UIMenuManager.I.Open();
|
||||
ManagerMenu.I.Open();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user