using System.Collections.Generic; using MoleMole.Config; using UniRx; using UnityEngine; using UnityEngine.UI; namespace MoleMole { public class DropNewItemDialogContextV2 : BaseSequenceDialogContext { private const string DROP_ITEM_PREFAB_PATH = "UI/Menus/Widget/Storage/DropItem"; private const string DROP_AVATAR_CARD_PREFAB_PATH = "UI/Menus/Widget/Storage/DropAvatarCard"; private List _delayTimerSpanList = new List { 1.2f, 1.4f, 2f }; private List _delayTimerList = new List(); private CanvasTimer _firstDelayTimer; private CanvasTimer _secondDelayTimer; private CanvasTimer _thirdDelayTimer; private List> _storageItemList; private SequenceAnimationManager _animationManager; public DropNewItemDialogContextV2(List> itemDataList) { config = new ContextPattern { contextName = "DropNewItemDialogContextV2", viewPrefabPath = "UI/Menus/Dialog/NewDropItemGotDialogV2", cacheType = ViewCacheType.DontCache }; _storageItemList = itemDataList; } public override bool OnNotify(Notify ntf) { if (ntf.type == NotifyTypes.AnimCallBack) { return OnAnimationCallBack(ntf.body.ToString()); } return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("BG/Button").GetComponent