// Update is called once per frame private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } else if (Input.GetKeyDown(KeyCode.LeftShift) || Input.GetKeyDown(KeyCode.RightShift)) { RestartGame(); } else if (Input.GetKeyDown(KeyCode.I)) { instructionText.enabled = !instructionText.enabled; } if (gameAiInstance != null && gameAiInstance.gameOver) { if (screenFader != null) { if (screenFader.enabled == false) { screenFader.FadeScreenToBlack(); } else if (screenFader.doneFading) { Application.Quit(); } } } }