예제 #1
0
        public void ApplyHighlightSelection(int answerId, TextMeshProUGUI text)
        {
            if (GameDialogHelper.HighlightMode.Value == HighlightMode.ChangeColor)
            {
                var isCorrect = answerId == GameDialogHelper.CurrentDialog.CorrectAnswerId;
                var destColor =
                    isCorrect ? GameDialogHelper.DefaultCorrectColor : GameDialogHelper.DefaultIncorrectColor;

                var guessChance = GetRecordedGuessChance(GameDialogHelper.TargetHeroine,
                                                         GameDialogHelper.CurrentDialog.QuestionId,
                                                         answerId);
                if (guessChance > 0f)
                {
                    text.color = BlendColors(GameDialogHelper.DefaultColor, destColor, guessChance);
                }
                return;
            }

            GameDialogHelper.DefaultApplyHighlightSelection(answerId, text);
        }
예제 #2
0
 public void ApplyHighlightSelection(int answerId, TextMeshProUGUI text)
 {
     GameDialogHelper.DefaultApplyHighlightSelection(answerId, text);
 }