📜  unity key 检测 - C# 代码示例

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

代码示例3
void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }