Exemplo n.º 1
0
        public float ShowInfoText(InfoTextShowData data, string infoTextType, InfoTextPool pool)
        {
            PrepareShow(data);

            _showRoutine = this.RestartCoroutine(ShowInfoTextRoutine(data, infoTextType, pool), _showRoutine);
            _delay       = data.delay;

            return(GetTotalTime());
        }
Exemplo n.º 2
0
        protected virtual IEnumerator ShowInfoTextRoutine(InfoTextShowData data, string infoTextType, InfoTextPool pool)
        {
            yield return(new WaitForSeconds(data.delay));

            yield return(ShowingTextInfo());

            yield return(HidingTextInfo());

            pool.PushText(this, infoTextType);
        }