Version: 2017.1
public static bool anyKey ;

Descripción

Se mantiene presionada alguna tecla o botón del mouse? (Read Only)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Update() { if (Input.anyKey) Debug.Log("A key or mouse click has been detected"); } }