📜  按键运行代码 unity c# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.560000             🧑  作者: Mango

代码示例2
if(Input.GetKey(KeyCode.space))
    {
          print("Space key was pressed")
    }