Ejemplo n.º 1
0
        public override IEnumerator OnAddToStack()
        {
            yield return(base.OnAddToStack());

            yield return(new WaitUntil(() => !UIStack.Instance.IsLoadingScreenUp));

            InputBlockerManager.Instance.Block(InputBlockReason.CONVERT_FLY_ANIM, 1.5f);
            isReady = false;
            if (isShowBooxFx)
            {
                FxObj.CustomSetActive(true);
            }
            else if (mCallback != null)
            {
                TitleObj.CustomSetActive(true);
                TitleObj.GetComponent <UILabel>().text = Title;
            }
            FusionAudio.PostEvent("UI/ShowReward");
            if (m_UIDynamicShowItem != null)
            {
                m_UIDynamicShowItem.Clear();

                yield return(new WaitForSeconds(isShowBooxFx ? 1f : 0.3f));

                if (controller == null)
                {
                    yield break;
                }

                if (this.controller.gameObject != null)
                {
                    m_UIDynamicShowItem.needItemVoice = true;

                    var datas = new List <LTShowItemData>();
                    for (var i = 0; i < mItemDataList.Count; i++)
                    {
                        var item = mItemDataList[i];
                        datas.Add(new LTShowItemData(item.id, item.count, item.type, false));
                    }
                    m_UIDynamicShowItem.ShowItems(datas);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获得物品表现结束
 /// </summary>
 private void OnTweenFinished()
 {
     m_UIDynamicShowItem.Clear();
     m_UIDynamicShowItem.ShowItems(mItemDataList);
 }