Skip to content

Instantly share code, notes, and snippets.

@alexson
Created January 13, 2022 10:03
Show Gist options
  • Save alexson/32158edcab9dce022e88d90e25e6ba11 to your computer and use it in GitHub Desktop.
Save alexson/32158edcab9dce022e88d90e25e6ba11 to your computer and use it in GitHub Desktop.
private void Update()
{
if (_session == null)
{
return;
}
if (PlatformAgnosticInput.touchCount <= 0)
{
return;
}
var touch = PlatformAgnosticInput.GetTouch(0);
if (touch.phase == TouchPhase.Began)
{
if(GameVal.gc.gameEnabled)
TouchBegan(touch);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment