void TransitionToState(CirGUI gui) { currentGUIState = gui; switch (currentGUIState) { case CirGUI.Normal: Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; break; case CirGUI.CircuitG: Cursor.visible = true; Cursor.lockState = CursorLockMode.None; break; } }