get any key unity code example
Example 1: get key unity
if(Input.GetKey(KeyCode.Space))
{
//do somthing
}
Example 2: unity detect any key
if (Input.anyKey) {
// Code here
}
if(Input.GetKey(KeyCode.Space))
{
//do somthing
}
if (Input.anyKey) {
// Code here
}