/// <summary> /// Changes the colors of the tooltip's container, line, and font for after a tutorial step /// </summary> /// <param name="toggling">The Tooltips script instance to use for toggling the tooltips of the corresponding controller the script is attached to</param> /// <param name="tooltip">The tooltip to change the color of</param> public void ChangeTooltipColorAfterTutorialStep(Tooltips toggling, VRTK_ObjectTooltip tooltip) { toggling.ChangeContainerColor(tooltip, tipBackgroundColor_AfterTutorialStep); toggling.ChangeLineColor(tooltip, tipLineColor_AfterTutorialStep); toggling.ChangeFontColor(tooltip, tipTextColor_AfterTutorialStep); tooltip.ResetTooltip(); }
public void InCorrentAnswer() { //flash red green toolTipOfObject.containerColor = Color.red; toolTipOfObject.ResetTooltip(); // set up rest to clear Invoke("ChangeBack", 1); // play dong // //Loose score // add from score GameController.SavedTime -= TimeLostForIncorrectAnswer; }