/// <summary> /// Called when the Typewriter class finishes typing text and triggers the display of /// the OK button and hiding of the click anywhere to skip fading text. /// </summary> /// <param name="typewriter"></param> void Typewriter_Completed(UITypewriter typewriter) { if (okayButton != null) { okayButton.SetActive(true); } UIFader fader = GetComponentInChildren <UIFader>(); if (fader) { fader.gameObject.SetActive(false); } }
// Use this for initialization void Start() { typewriter = GetComponentInChildren <UITypewriter>(); typewriter.Completed += Typewriter_Completed; }