Files
BlueArchiveMiniGame/Assets/Samples/Input System/1.14.2/On-Screen Controls/ScreenTest.cs

26 lines
557 B
C#
Raw Normal View History

2025-09-25 07:54:42 +08:00
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()
{
}
}