Beispiel #1
0
    public void ResetGame()
    {
        controlClass.ResetAll();
        controlClass.ChangeActiveGame();

        Application.LoadLevel(Application.loadedLevel);
    }
Beispiel #2
0
    SpawnController spawnController;            //Just to have time's control

    void Update()
    {
        if (controlClass.GetActiveGame())
        {
            if (Input.GetKeyDown(KeyCode.R))
            {
                Application.LoadLevel(Application.loadedLevel);
                controlClass.ResetAll();
            }
        }
    }