예제 #1
0
    void onTouchPlayButton(UIButton sender)
    {
        removeMainMenuPage();
        removeAudioButton();
        createLoadingScreen();

        social.save();

        StartCoroutine(loadGame());
    }
예제 #2
0
파일: GameManager.cs 프로젝트: bacca87/rgb
    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());
        }
    }