i am trying to make a code where once i press Escape on my keyboard it switches the scene to my main menu i have set up but it keeps giving me this error Assets/Scripts/menuScript.js(3,21): BCE0005: Unknown identifier: 'Keycode'.
`function Update () {
if(Input.GetKey(Keycode.Escape))
%|-73974908_2|%
}`
↧