Ejemplo n.º 1
0
    public void EndGame(bool pWin)
    {
        if (GameEnded)
        {
            Debug.Log("gamew already ended");
            return;
        }

        GameEnded = true;
        Debug.Log("WIN = " + pWin);

        SaveDataController.OnLevelWin(director.SelectedLevel);

        game.HUD.Curtain.SetFade(true, () => game.HUD.EndScreen.Show(pWin), 3);
    }