fix:1、结算优化
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class InputHelper : MonoBehaviour
|
||||
{
|
||||
public static InputHelper Instance;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance == null) Instance = this;
|
||||
else Destroy(gameObject);
|
||||
}
|
||||
|
||||
// 提供输入状态给UI层调用
|
||||
public int TouchCount => Input.touchCount;
|
||||
public Touch GetTouch(int index) => Input.GetTouch(index);
|
||||
public bool GetMouseButtonDown(int button) => Input.GetMouseButtonDown(button);
|
||||
public bool GetMouseButton(int button) => Input.GetMouseButton(button);
|
||||
public bool GetMouseButtonUp(int button) => Input.GetMouseButtonUp(button);
|
||||
public Vector3 MousePosition => Input.mousePosition;
|
||||
// public float GetMouseWheelDelta() => Input.GetMouseWheelDelta();
|
||||
}
|
||||
Reference in New Issue
Block a user