public static void ReciveResPowerData(GC_RES_POWERUP msg) { curScoreList.Clear(); for (int i = 0; i < msg.typeCount; i++) { curScoreList.Add(new BePowerUpData(msg.GetType(i), msg.GetValue(i), msg.GetLevel(i))); } if (delegateShowBePowerLeft != null) { delegateShowBePowerLeft(); } else { //add by mawenbin //当显示微型复活界面时,正常复活界面中delegateShowBePowerLeft未初始化,此时也不需要显示CheckPowerRoot if (null != ReliveLogic.Instance()) { if (ReliveLogic.Instance().m_MiniPanel.activeSelf&& !ReliveLogic.Instance().m_NormalPanel.activeSelf) { return; } } UIManager.ShowUI(UIInfo.CheckPowerRoot, AfterLoadUI); } }
public uint Execute(PacketDistributed ipacket) { GC_RES_POWERUP packet = (GC_RES_POWERUP )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic BePowerData.ReciveResPowerData(packet); return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }