Esempio n. 1
0
 /// <summary>
 /// 界面显示之前调用
 /// </summary>
 protected override void OnStart(INotification notification)
 {
     if (mainMediator == null)
     {
         mainMediator = Facade.RetrieveMediator("MainMediator") as MainMediator;
     }
 }
Esempio n. 2
0
    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);
    }