using System; using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace MoleMole { public class DropLinkDialogContext : BaseDialogContext { public readonly MaterialDataItem dropItem; private List _dropLevelDataList; private Action _customDropLinkCallBack; public DropLinkDialogContext(MaterialDataItem dropItem, Action onDropLinkClick = null) { config = new ContextPattern { contextName = "DropLinkDialogContext", viewPrefabPath = "UI/Menus/Dialog/ItemDropLinkDialog" }; this.dropItem = dropItem; SetupLevelList(onDropLinkClick); } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("BG"), EventTriggerType.PointerClick, OnBGClick); BindViewCallback(base.view.transform.Find("Dialog/CloseBtn").GetComponent