예제 #1
0
    public float NextPrize()
    {
        float prize = solution.winAmounts[chestsOpened];

        amountEarned += prize;
        gameView.ChangePrizeText(amountEarned);
        chestsOpened++;


        if (prize <= 0f && chestsOpened > 1)
        {
            grid.EveryonePooper();
            return(-1f);
        }



        return(prize);
    }