Ejemplo n.º 1
0
    void onTouchPlayButton(UIButton sender)
    {
        removeMainMenuPage();
        removeAudioButton();
        createLoadingScreen();

        social.save();

        StartCoroutine(loadGame());
    }
Ejemplo n.º 2
0
    void checkLoss()
    {
        if (!endGame && !godMode && healthPoints < 1)
        {
            endGame = disableInputs = true;

            // TODO: blocca lo spawner (come quando si mette in pausa)

            social.submitScore(scorePoints);
            social.checkZeroPointDeath(evolutionPoints);
            social.checkCompletedGames();
            social.save();

            StartCoroutine(endGameEffect());
        }
    }