Пример #1
0
 private void ShowQuestionEnd(int qNum, bool correct)
 {
     if (!correct)
         ShowGameEnd(qNum, qNum > 0 ? PrizesClass.GetLosePrize(qNum - 1) : 0);
     else if (qNum == PoolSize - 1)
         ShowGameEnd(qNum, GetQuestionPrize(qNum));
     else
         ShowPrizePanel(qNum);
 }
Пример #2
0
    private void ShowPrizePanel(int qNum)
    {
        qNum++;
        prizePanel.SetActive(true);
        fireProfit.text = "$ " + PrizesClass.GetLosePrize(qNum);
        nextPrizeText.text = "$ " + GetQuestionPrize(qNum);
        nextQuestion.text = qNum + 1 + "/15";

        // animation, show prize
    }