Input.touchCount

Switch to Manual
public static int touchCount ;

Description

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

using UnityEngine;
using System.Collections;

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