using System; using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace MoleMole { public class VentureSpeedUpDialogContext : BaseDialogContext { private VentureDataItem _ventureData; private List _showItemList; private MaterialDataItem _selectedItem; private int _num_materials; public VentureSpeedUpDialogContext(VentureDataItem ventureData) { config = new ContextPattern { contextName = "VentureSpeedUpDialogContext", viewPrefabPath = "UI/Menus/Dialog/VentureSpeedUpDialog" }; _ventureData = ventureData; } public override bool OnPacket(NetPacketV1 pkt) { return false; } public override bool OnNotify(Notify ntf) { if (ntf.type == NotifyTypes.SelectItemIconChange) { UpdateSelectedItem((StorageDataItemBase)ntf.body); } return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("Dialog/Content/Info/UseNum/DecreaseBtn").GetComponent