Example #1
0
        protected override void PrepareShow(InfoTextShowData data)
        {
            base.PrepareShow(data);

            _animator.enabled = true;
            Clear();
        }
Example #2
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());
        }
Example #3
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);
        }
Example #4
0
        public float ShowInfoText(string infoTextType, InfoTextShowData data, bool pushAllOthers = false)
        {
            if (IsContainInDic(infoTextType) == false)
            {
                return(0f);
            }

            if (pushAllOthers)
            {
                PushAll();
            }

            if (IsIgnoreFuncAtShow?.Invoke() == true)
            {
                Debug.Log("Ignore show!!");
                return(0f);
            }

            var newInfoText = _infoTextPoolDic[infoTextType].Pop();

            return(newInfoText.ShowInfoText(data, infoTextType, this));
        }
Example #5
0
 protected virtual void PrepareShow(InfoTextShowData data)
 {
     transform.position = data.spawnPos;
 }