//Displays the correct answer(s) in the correct/incorrect text box. public void giveHint() { corInc.text = "The " + transform.parent.name + " does this:\n" + correction1 + "\n" + correction2 + "\n" + correction3; myHint = true; rs.toggleHintTrue(); //Sets this boolean to true for feedback purposes. rs.reportSelf(); }
//Turns the hint sprite on if the hint button is pressed. //Sets the hintUsed boolean to true as well. public void toggleSpriteHint() { rs.toggleHintTrue(); if (rs.getHint() == true) { hintSprite(); rs.reportSelf(); } }
//Displays the correct answer(s) in the correct/incorrect text box. public void giveHint() { corInc.text = "The " + transform.parent.name + " does this:"; for (int n = 0; n < answerSet.Count; n++) { corInc.text += "\n" + answerSet [n]; } myHint = true; rs.toggleHintTrue(); //Sets this boolean to true for feedback purposes. rs.reportSelf(); }
//Changes the dropdown's value to the correct answer. public void giveHint() { if (this.name == "State Name") { corInc.text = "This state is named:\n" + correctAnswer + "."; } if (this.name == "Capital") { corInc.text = "The Capital of " + transform.parent.name + " is\n" + correctAnswer + "."; } myHint = true; rs.toggleHintTrue(); //Sets this boolean to true for our feedback purposes. rs.reportSelf(); }