Esempio n. 1
0
    public void Start()
    {
        bool playerWon  = GameManagerLogic.GetPlayerWon();
        bool twoPlayers = ScoreManager.GetInstance().IsTwoPlayers();
        int  difficulty = ScoreManager.GetInstance().GetGameDifficulty();

        extraHardButton.SetActive(false);
        _option = 0;

        if (twoPlayers || (playerWon && difficulty >= 3))
        {
            if (difficulty == 3)
            {
                extraHardButton.SetActive(true);
            }
            actionText.text = "MAIN MENU";
            _option         = 1;
        }
        else if (playerWon)
        {
            actionText.text = "CONTINUE";
            _option         = 2;
        }
        else
        {
            actionText.text = "RETRY";
            _option         = 3;
        }
    }
Esempio n. 2
0
        public void Start()
        {
            bool playerWon = GameManagerLogic.GetPlayerWon();

            if (ScoreManager.GetInstance().IsTwoPlayers())
            {
                endGameText.text = playerWon ? "Player 1 Wins!" : "Player 2 Wins!";
            }
            else
            {
                if (ScoreManager.GetInstance().GetGameDifficulty() == 4 && playerWon)
                {
                    endGameText.text     = "CONGRATULATIONS YOU WON!";
                    endGameText.fontSize = 100.0f;
                }
                else
                {
                    endGameText.text = playerWon ? "You Win!" : "You Lose";
                }
            }
        }