public void OnMsgGoodsList(CliProto.SC_SHOP_GET_GOODSLIST_ACK refMsg) { m_ProductBoughtCount.Clear(); byte count = refMsg.m_Count; for (int i = 0; i < count && i < HeaderProto.MAX_SHOP_GOODS_COUNT; ++i) { CliProto.SGoodsInfo productInfo = refMsg.m_GOODSINFOS[i]; m_ProductBoughtCount[productInfo.m_GoodsId] = productInfo.m_Num; } if (m_MainPanel != null && m_MainPanel.GetComponent <MallPanel>().m_isPanelOpen) { m_MainPanel.GetComponent <MallPanel>().RefreshTabPanel((int)MallPanel.TabName.TAB_NAME_VIP, false); m_MainPanel.GetComponent <MallPanel>().RefreshTabPanel((int)MallPanel.TabName.TAB_NAME_MALL, false); } }
private static void msg_SCID_SHOP_GET_GOODSLIST_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_SHOP_GET_GOODSLIST_ACK refMsg = (CliProto.SC_SHOP_GET_GOODSLIST_ACK)msg; sdMallManager.Instance.OnMsgGoodsList(refMsg); }