public void ResetGame() { controlClass.ResetAll(); controlClass.ChangeActiveGame(); Application.LoadLevel(Application.loadedLevel); }
SpawnController spawnController; //Just to have time's control void Update() { if (controlClass.GetActiveGame()) { if (Input.GetKeyDown(KeyCode.R)) { Application.LoadLevel(Application.loadedLevel); controlClass.ResetAll(); } } }