Removed TOTU 103

This commit is contained in:
Ignacio Gómez Puga
2025-03-04 12:04:52 -06:00
commit 5847d844a5
675 changed files with 76582 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using System;
using UnityEngine;
using UnityEngine.InputSystem;
public class InputHandler : MonoBehaviour
{
public static event Action OnTap;
private UserInput _userInput;
private void Awake()
{
_userInput = new UserInput();
_userInput.Enable();
}
private void Start()
{
_userInput.MobileTouch.Tap.performed += OnTapPerformed;
}
private void OnTapPerformed(InputAction.CallbackContext context)
{
OnTap?.Invoke();
}
private void OnDestroy()
{
_userInput.MobileTouch.Tap.performed -= OnTapPerformed;
}
}