// When the user was correct public void IsCorrect(string explanation) { if (_hasResult) { return; } // Tell the score that the user scored a correct answer Scores.AddCorrect(); _hasResult = true; // Stop here when feedback is shown only after the scene if (modeFeedback is ModeFeedbackAfter) { return; } // If renderer found, set material to correct if (box_renderer != null) { box_renderer.material = m_correct; } // Disable wrong feedback ui_wrong.SetActive(false); // Enable correct feedback ui_correct.SetActive(true); txt_correct.text = explanation; // Show feedback canvas_explanation.SetActive(true); time = 0; isShowingMsg = true; }