//Switches the GUI on and off
//*******************************************************
void Update()
{
if (atWall)
{
if (Input.GetKeyDown("e"))
{
// Screen.lockCursor = false; //Cursor is free to move when user goes into terminal
if (guiEnabled)
{
resume();
}
else
{
StartCoroutine(jackin ());
}
}
}
else
{
//Screen.showCursor = false;
//Screen.lockCursor = true; //Hiding Cursor means redoing the way the crosshair was implemented -Josephs
//Screen.lockCursor = false; //Cursor remains locked if not in terminal
}
editor = (TextEditor)GUIUtility.GetStateObject(typeof(TextEditor), GUIUtility.keyboardControl);
editor.MoveLineStart();
}