/// <summary> /// 界面显示之前调用 /// </summary> protected override void OnStart(INotification notification) { if (mainMediator == null) { mainMediator = Facade.RetrieveMediator("MainMediator") as MainMediator; } }
protected override void OnShow(INotification notification) { if (mainMediator == null) { mainMediator = Facade.RetrieveMediator("MainMediator") as MainMediator; } ServerCustom.instance.SendClientMethods("onClientGetAllCardInfo"); ServerCustom.instance.SendClientMethods("onClientGetAllPieces"); ServerCustom.instance.SendClientMethods("onClientGetItemList"); ServerCustom.instance.SendClientMethods("onClientGetFriendList"); LoadSprite.LoaderHead(panel.headicon, "jueshetouxiang1", false); panel.Level.text = PlayerMediator.playerInfo.level.ToString(); panel.playername.text = PlayerMediator.playerInfo.name; panel.fightValue.text = PlayerMediator.playerInfo.fightValue.ToString(); panel.Vip.text = "VIP" + PlayerMediator.playerInfo.vipLevel.ToString(); Facade.SendNotification(NotificationID.BALLOPER_CLOSE); }