private void UpdatePostQuestionScreenUI(PostQuestionScreenType type, int addScore) { switch (type) { case PostQuestionScreenType.Correct: postQuestionBG.color = screenColorCorrect; postQuestionTitleText.text = Constants.PostQuestionTextCorrect; postQuestionSubtitleText.text = "+" + addScore + " points"; break; case PostQuestionScreenType.Incorrect: postQuestionBG.color = screenColorIncorrect; postQuestionTitleText.text = Constants.PostQuestionTextIncorrect; postQuestionSubtitleText.text = "+0 points"; break; case PostQuestionScreenType.Waiting: postQuestionBG.color = screenColorWaiting; postQuestionTitleText.text = Constants.PostQuestionTextWaiting1; postQuestionSubtitleText.text = Constants.PostQuestionTextWaiting2; break; case PostQuestionScreenType.FinishClient: postQuestionBG.color = screenColorFinish; postQuestionTitleText.text = Constants.PostQuestionTextFinish; postQuestionSubtitleText.text = Constants.PostQuestionTextFinishScore + events.currentScore + " points"; break; } }
private void DisplayPostQuestionScreenUI(PostQuestionScreenType type, int addScore) { UpdatePostQuestionScreenUI(type, addScore); postQuestionAnimator.SetInteger(ScreenState, 2); mainCanvasGroup.blocksRaycasts = false; }