Esempio n. 1
0
    public void ContinueToNextDay()
    {
        EndStates endState = gameOverCheck.CheckEndOfDay();

        switch (endState)
        {
        case EndStates.NoFood:
            playerInfo.currState = EndStates.NoFood;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoHouse:
            playerInfo.currState = EndStates.NoHouse;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoTax:
            playerInfo.currState = EndStates.NoTax;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoMoney:
            playerInfo.currState = EndStates.NoMoney;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.TooManyStrikes:
            playerInfo.currState = EndStates.TooManyStrikes;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.KidDies:
            playerInfo.currState = EndStates.KidDies;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.DataBreach:
            playerInfo.currState = EndStates.DataBreach;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.Conspiring:
            playerInfo.currState = EndStates.Conspiring;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.FalseInfo:
            playerInfo.currState = EndStates.FalseInfo;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.None:
            //TODO: Change this
            playerInfo.ResetPlayer();
            StartCoroutine(transitionManager.TransitionScene("Day2"));
            break;
        }
    }
Esempio n. 2
0
    public void HueyCheck()
    {
        if (CurrDay == 6 && currFirstName == "Huey" && currLastName == "Fields")
        {
            playerInfo.noSellHuey = true;
            playerInfo.IncreaseIncorrect();
            //payout
            for (int i = 0; i < 10; i++)
            {
                playerInfo.IncreaseMoney();
            }
        }
        else if (CurrDay == 6)
        {
            playerInfo.IncreaseIncorrect();
        }
        if (CurrDay == 6)
        {
            switch (playerInfo.incorrectCount)
            {
            case 1:
                ShowRecordingWarning();
                break;

            case 2:
                // all profits are taken away and no more profits for the day
                playerInfo.recordedViolation = true;
                playerInfo.currProfitForDay  = 0;
                ShowRecordingWarning2();
                break;

            case 3:
                // game over
                playerInfo.currState = EndStates.TooManyStrikes;
                StartCoroutine(transitionManager.TransitionScene("BadEnd"));
                break;

            default:
                break;
            }
        }
    }
Esempio n. 3
0
 public void BackToMainMenu()
 {
     StartCoroutine(transitionManager.TransitionScene("MainMenu"));
 }
Esempio n. 4
0
    public void ContinueToNextDay()
    {
        EndStates endState = gameOverCheck.CheckEndOfDay();

        if (playerInfo.dataBreachCount >= 2)
        {
            endState = EndStates.DataBreach;
        }
        switch (endState)
        {
        case EndStates.NoFood:
            playerInfo.currState = EndStates.NoFood;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoHouse:
            playerInfo.currState = EndStates.NoHouse;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoTax:
            playerInfo.currState = EndStates.NoTax;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.NoMoney:
            playerInfo.currState = EndStates.NoMoney;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.TooManyStrikes:
            playerInfo.currState = EndStates.TooManyStrikes;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.KidDies:
            playerInfo.currState = EndStates.KidDies;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.DataBreach:
            playerInfo.currState = EndStates.DataBreach;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.Conspiring:
            playerInfo.currState = EndStates.Conspiring;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.FalseInfo:
            playerInfo.currState = EndStates.FalseInfo;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.Dabbnapping:
            playerInfo.currState = EndStates.Dabbnapping;
            StartCoroutine(transitionManager.TransitionScene("BadEnd"));
            break;

        case EndStates.None:
            //TODO: Change this
            playerInfo.ResetPlayer();
            switch (gameButton.CurrDay)
            {
            case 1:
                StartCoroutine(transitionManager.TransitionScene("Day2"));
                break;

            case 2:
                StartCoroutine(transitionManager.TransitionScene("Day3"));
                break;

            case 3:
                StartCoroutine(transitionManager.TransitionScene("Day4"));
                break;

            case 4:
                StartCoroutine(transitionManager.TransitionScene("Day5"));
                break;

            case 5:
                StartCoroutine(transitionManager.TransitionScene("Day6"));
                break;

            case 6:
                StartCoroutine(transitionManager.TransitionScene("Day7"));
                break;

            case 7:
                StartCoroutine(transitionManager.TransitionScene("End"));
                break;

            default:
                StartCoroutine(transitionManager.TransitionScene("MainMenu"));
                break;
            }

            break;
        }
    }