public static int touchCount ;

Description

触摸次数。保证在整个帧期间不会更改。(只读)

using UnityEngine;

public class Example : MonoBehaviour { void Update() { if (Input.touchCount > 0) { print(Input.touchCount); } } }