fix:1、添加arrow的游戏代码,和相关的周边功能

This commit is contained in:
2026-07-10 17:57:02 +08:00
parent dd56ccb469
commit f1e05d9547
145 changed files with 8492 additions and 1059 deletions
+21
View File
@@ -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();
}