Exemple #1
0
    /// <summary>
    /// Ends the game
    /// </summary>
    public void EndGame()
    {
        TogglePlayer(false);

        CancelInvoke();
        ObjectPoolManager.Instance.ResetObjects();
        UserInterface.EndGame(); //Adjust the UI
    }
Exemple #2
0
    /// <summary>
    /// Ends the game
    /// </summary>
    public void EndGame()
    {
        TogglePlayer(false);

        CancelInvoke();
        foreach (GameObject enemy in GameObject.FindGameObjectsWithTag("Enemy"))
        {
            Destroy(enemy);
        }

        UserInterface.EndGame(); //Adjust the UI
    }