I need if to go on and off if a press the Tab button but for some reason it doesnt do anything. what am i doing wrong. below is the main parts of code im trying to get to work so dont worry, the function update is there.
public ShipMenu shipGUI;
if(Input.GetKeyDown (KeyCode.Tab) && shipGUI.enabled == true)
shipGUI.enabled = false;
if(Input.GetKeyDown (KeyCode.Tab) && shipGUI.enabled == false)
shipGUI.enabled = true;