コード例 #1
0
        private IEnumerator HideTextInSeconds(float inSeconds)
        {
            yield return(new WaitForSeconds(inSeconds));

            _textFade.FadeOut(FadeOutComplete);

            //HideText ();
            RemoveCurrentMessage();
        }
コード例 #2
0
        private IEnumerator _ShowForSeconds(float seconds, string text)
        {
            UpdateText(text);

            _textFade.FadeIn();

            yield return(new WaitForSeconds(seconds));

            _textFade.FadeOut();


            if (_callbackMethod != null)
            {
                _callbackMethod();
                _callbackMethod = null;
            }
        }