Added touch support for controls

This commit is contained in:
Pasha Bibko
2025-11-25 13:24:31 +00:00
parent 4fe8132656
commit 8b141dcd93
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
using UnityEngine;
public static class GlobalInput
{
public static bool IsScreenClicked()
{
return Input.GetMouseButtonDown(0) || Input.touchCount > 0;
}
}