private void PshPower(object sender, GameEventArgs e) { OnReceiveSCPacketBaseEventArgs ne = e as OnReceiveSCPacketBaseEventArgs; if (ne.msgID != CMD.PshPower) { return; } PshPower data = ne.scPacketBase as PshPower; PECommon.SetPlayerDataByPower(data); UGuiForm mainCityForm = GameEntry.UI.GetUIForm(UIFormId.MainCityForm); if (!mainCityForm) { return; } if (mainCityForm.Visible) { OnRefreshUIFormEventArgs eventArgs = ReferencePool.Acquire <OnRefreshUIFormEventArgs>(); eventArgs.Fill(UIFormId.MainCityForm); GameEntry.Event.FireNow(this, eventArgs); } }