// Update is called once per frame void Update() { if (gameOver) { if (Input.GetKeyDown(KeyCode.Space)) { Instantiate(player, Vector3.zero, Quaternion.identity); spawn_manager.ResetHardLvlVars(); gameOver = false; uiManager.HideTitleScreen(); } } }
// Update is called once per frame void Update() { if (gameOver) { if (Input.GetKeyDown(KeyCode.Space)) { Instantiate(player, Vector3.zero, Quaternion.identity); spawn_manager.ResetHardLvlVars(); gameOver = false; uiManager.HideTitleScreen(); } } }