Esempio n. 1
0
 public void loadData(int type, CallBack callback)
 {
     if (type == TYPE_LADDER)
     {
         RankLadderFPort fport = FPortManager.Instance.getFPort <RankLadderFPort>();
         fport.apply(callback);
     }
     else
     {
         RankFPort fport = FPortManager.Instance.getFPort("RankFPort") as RankFPort;
         fport.access(type, callback);
     }
 }
    protected override void begin()
    {
        base.begin();
//		int rank = GodsWarManagerment.Instance.self.rank;
//		myIntergalLabel.text = LanguageConfigManager.Instance.getLanguage("godsWar_83",rank==-1?LanguageConfigManager.Instance.getLanguage("godsWar_84"):rank.ToString());
        RankFPort fport = FPortManager.Instance.getFPort("RankFPort") as RankFPort;

        fport.access(RankManagerment.TYPE_LASTBATTLE, () => {
            lastBattleContent.initContent();
            updateMyRank();
        });

        MaskWindow.UnlockUI();
    }