using UnityEngine;
public class HelloMobile : MonoBehaviour
{
void Update()
{
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);
if (touch.phase == TouchPhase.Began)
{
Debug.Log("Касание экрана!");
}
}
}
} using UnityEngine;
public class HelloMobile : MonoBehaviour
{
void Update()
{
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);
if (touch.phase == TouchPhase.Began)
{
Debug.Log("Касание экрана!");
}
}
}
}