Ejemplo n.º 1
0
        private void ShowCurrentMessage()
        {
            okToShowNewMessage = false;

            _text.text = _queue.current.text;
            _textFade.FadeIn(FadeInComplete);
        }
Ejemplo n.º 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;
            }
        }