Added touch support for controls
This commit is contained in:
9
Assets/Scripts/GlobalInput.cs
Normal file
9
Assets/Scripts/GlobalInput.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
public static class GlobalInput
|
||||
{
|
||||
public static bool IsScreenClicked()
|
||||
{
|
||||
return Input.GetMouseButtonDown(0) || Input.touchCount > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user