📌  相关文章
📜  识别是否统一按下某个键 - C# 代码示例

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

代码示例1
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }
}