using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.UI; using proto; namespace MoleMole { public class AchieveRewardGotContext : BaseDialogContext { public delegate void OnDialogDestroy(); private OnDialogDestroy _onDestroy; private List _achieveRewardList = new List(); private proto.RewardData _rewardData; private SequenceAnimationManager _animationManager; public AchieveRewardGotContext(List dataList) { config = new ContextPattern { contextName = "AchieveRewardGotDialogContext", viewPrefabPath = "UI/Menus/Dialog/AchieveRewardGotDialog" }; _rewardData = dataList[0]; InitRewardList(); } protected override bool SetupView() { _animationManager = new SequenceAnimationManager(); SetupScrollView(); SetupDetail(); _animationManager.AddAnimation(base.view.transform.Find("Dialog/Content/CompleteIcon").GetComponent()); _animationManager.StartPlay(0.5f, false); return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("Dialog/CloseBtn").GetComponent