using MoleMole.Config; using UnityEngine.UI; namespace MoleMole { public class SupplyEntrancePageContext : BasePageContext { public SupplyEntrancePageContext() { config = new ContextPattern { contextName = "SupplyEntrancePageContext", viewPrefabPath = "UI/Menus/Page/SupplyEntrancePage", cacheType = ViewCacheType.AlwaysCached }; } public override bool OnPacket(NetPacketV1 pkt) { ushort cmdId = pkt.getCmdId(); if (cmdId == 198) { return SetupWelfareHint(); } return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("Btn/BtnSupply/Button").GetComponent