public void Show(bool alert) { if (alert && AlertScript != null) { AlertScript.Show(); CorrectScript.Hide(); } else if (CorrectScript != null) { CorrectScript.Show(); AlertScript.Hide(); } }
public void HideGlow(bool red) { UINoticeScript glow = this.GetScript(Notice.Glow, red); if (glow != null) { glow.Hide(); } }
private IEnumerator Hide(UINoticeScript which, System.Func <bool> until) { yield return(new WaitUntil(until)); which.Hide(); }
private IEnumerator Hide(UINoticeScript which, int time) { yield return(new WaitForSeconds(time)); which.Hide(); }