inputsystem

This commit is contained in:
2025-09-25 07:54:42 +08:00
parent 9ed1d1d904
commit 423ad80303
24 changed files with 755 additions and 140 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class ScreenTest : MonoBehaviour
{
public InputActionReference inputAction;
// Start is called before the first frame update
void Start()
{
inputAction.action.Enable();
inputAction.action.performed += ScreenTouchTest;
}
private void ScreenTouchTest(InputAction.CallbackContext obj)
{
Debug.Log(obj);
}
// Update is called once per frame
void Update()
{
}
}