using System.Collections;using System.Collections.Generic;using UnityEngine;public class ShuRu : MonoBehaviour{private void Update(){//按下E键if (Input.GetKeyDown(KeyCode.E)){Debug.Log("按下E");}//按住M键会一直执行if (Input.GetKey (KeyCode.M )){Debug.Log("按住M");}//N键弹起if (Input.GetKeyUp (KeyCode.N)){Debug.Log("N键弹起");}//Input .GetAxis //Input.GetAxis("Horizontal")和Input.GetAxis("Verical")输出的是float值;//按下input设置好的虚拟按键if (Input.GetButtonDown("Fire1")){Debug.Log("按下虚拟按键Fire1");}//鼠标左、中、右;0、1、2;if (Input.GetMouseButtonDown (0)) //一个按键执行多个命令不冲突{Debug.Log("按下虚拟按键鼠标左键");}}}