📅  最后修改于: 2022-03-11 14:48:55.094000             🧑  作者: Mango
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown("space"))
{
print("space key was pressed");
}
}
}