обнаружение ключей единства
if (Input.GetKeyDown(KeyCode.Space))
{
print("space key was pressed");
}
RyanGar46
if (Input.GetKeyDown(KeyCode.Space))
{
print("space key was pressed");
}
if(Input.GetKey(KeyCode.Space))
{
//do somthing
}
if(Input.GetKey(KeyCode.space))
{
print("Space key was pressed")
}
//https://docs.unity3d.com/ScriptReference/KeyCode.html - ALL KEYCODES