public void Dismiss() { if (!restrictDismissing) { Kill(); for (int i = 0; i < queueSkips; ++i) { SHGUIview v = SHGUI.current.PopViewFromQueue(); if (v != null) { v.KillInstant(); } } } else { char c = 'w'; if (restrictInstruction != null) { restrictInstruction.KillInstant(); c = 'w'; } if (color == 'r') { c = 'r'; } restrictInstruction = null; string text = restrictedInstructions[UnityEngine.Random.Range(0, restrictedInstructions.Count)]; restrictInstruction = new SHGUItempview(1f); restrictInstruction.AddSubView(new SHGUItext(text, instructionX, instructionY, c).GoFromRight()); AddSubView(restrictInstruction); PunchIn(.8f); restrictInstruction.PunchIn(0f); SHGUI.current.PlaySound(SHGUIsound.noescape); } }