private IEnumerator HideTextInSeconds(float inSeconds) { yield return(new WaitForSeconds(inSeconds)); _textFade.FadeOut(FadeOutComplete); //HideText (); RemoveCurrentMessage(); }
private IEnumerator _ShowForSeconds(float seconds, string text) { UpdateText(text); _textFade.FadeIn(); yield return(new WaitForSeconds(seconds)); _textFade.FadeOut(); if (_callbackMethod != null) { _callbackMethod(); _callbackMethod = null; } }