how to get the number preesed in uinty code example
Example: unity detect number key
// Replace the 1 with your number
if (Input.GetKeyDown(KeyCode.Alpha1)) {
//Code here
}
// Replace the 1 with your number
if (Input.GetKeyDown(KeyCode.Alpha1)) {
//Code here
}