hey guys what i am trying to do is a simple Menu where you press esc and a some buttons appear, and when you press esc again they disappear
this is my script
what am i doing wrong?
i get no errors just the button doesnt appear, yes it does work with the
part
try moving the second if above the first if
looks like its a case of both triggering at the same time
Even better:
function Update () {
if(Input.GetKeyDown(KeyCode.Escape)) {
Esc = !Esc;
}
}
Thank you Dman!
worked like a charm!