using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.UI; using proto; namespace MoleMole { public class SignInRewardGotDialogContext : BaseDialogContext { public delegate void OnDialogDestroy(); private OnDialogDestroy _onDestroy; private GetSignInRewardRsp _signInRewardRsp; private int _signInTimes; private SequenceAnimationManager _animationManager; private List _missionRewardList = new List(); public SignInRewardGotDialogContext(GetSignInRewardRsp rsp, int times = 1) { config = new ContextPattern { contextName = "SignInRewardGotDialogContext", viewPrefabPath = "UI/Menus/Dialog/SignInRewardGotDialog" }; _signInRewardRsp = rsp; _signInTimes = times; } public void RegisterCallBack(OnDialogDestroy callback) { _onDestroy = callback; } protected override bool SetupView() { _animationManager = new SequenceAnimationManager(); SetupTitle(); InitRewardList(); SetupContents(); _animationManager.AddAnimation(base.view.transform.Find("Dialog/Content/CompleteIcon").GetComponent()); _animationManager.StartPlay(0.5f); Singleton.Instance.RequestHasGotItemIdList(); return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("BG").GetComponent