// Update is called once per frame void Update() { if (levelCompleted) { if (Input.GetKeyDown(KeyCode.Space)) { gameSaver.Record(lightGearsEarned, bitsUI.bits, timeUI.min.ToString() + ":" + timeUI.sec.ToString("D2")); gameManager.EndLevel(); } else if (Input.GetKeyDown(KeyCode.LeftShift)) { gameSaver.Record(lightGearsEarned, bitsUI.bits, timeUI.min.ToString() + ":" + timeUI.sec.ToString("D2")); gameManager.Restart(); } } }