public uint Execute(PacketDistributed ipacket) { GC_WULIN_ShowSearch packet = (GC_WULIN_ShowSearch )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic WuLinData.ShowSearchOpponent(packet); return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
public static void ShowSearchOpponent(GC_WULIN_ShowSearch msg) { ContinueSec = msg.ContinueSecond; Rounder = msg.Progress; if (null != ActivityController.Instance()) { ActivityController.Instance().ChangeToWuLinShowOppoentView(); CallShowSearchOpponentDelegate( ); } else { UIManager.ShowUI(UIInfo.Activity, OnActiveShowActiviController); } }