当前是否有任何键或鼠标按钮处于按下状态?(只读)
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Update() { if (Input.anyKey) Debug.Log("A key or mouse click has been detected"); } }