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); }
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 }