Esempio n. 1
0
    public IEnumerator StartTheGame(GameController gameController)
    {
        displayText.SetRestartText("");
        displayText.SetGameOverText("");
        displayText.SetChallengeAlertText("");

        yield return(new WaitForSeconds(1f));

        displayText.SetGameOverText(phase.phaseNameTxt);
        yield return(new WaitForSeconds(2f));

        displayText.SetGameOverText(phase.phaseChallengeTxt);
        yield return(new WaitForSeconds(2f));

        yield return(new WaitForSeconds(2f));

        displayText.SetChallengeAlertTextColor(0f, 1f, 0f, 1f);
        displayText.SetChallengeAlertText(InGameConstantStrings.READY);

        yield return(new WaitForSeconds(1f));

        displayText.SetChallengeAlertText(InGameConstantStrings.GO);
        displayText.SetGameOverText("");

        yield return(new WaitForSeconds(1f));

        gameController.UpdateChallenge();
        player.PlayerAwake();
    }
Esempio n. 2
0
    public GameOver(InGameDisplayText displayText, GameController gameController)
    {
        gameController.RestartFlag        = true;
        gameController.ContinueSpawnWaves = false;

        displayText.SetChallengeText("");
        displayText.SetChallengeAlertText("");

        displayText.SetGameOverText(InGameConstantStrings.GAME_OVER);
    }
Esempio n. 3
0
    // fluxo dos scores
    public void AddValue(int value)
    {
        challengeScore += value;
        displayText.SetChallengeAlertText(challengeScore.ToString());

        VerifyChallenge(challengeScore, challengeScoreResult);
    }