Ejemplo n.º 1
0
 public void loadFinalAndGuess()
 {
     //由于决赛和竞猜是一个领奖界面,要一起处理
     if (type == ArenaAwardWindow.TYPE_GUESS)
     {
         FPortManager.Instance.getFPort <ArenaGetAwardInfoGuessFPort>().access(OnDataLoaded);
     }
     else if (type == ArenaAwardWindow.TYPE_FINAL)
     {
         WindowBase win = UiManager.Instance.CurrentWindow;
         if (win is ArenaAwardWindow)
         {
             win = win.GetFatherWindow();
         }
         if (win is ArenaFinalWindow && ArenaManager.instance.state == ArenaManager.STATE_RESET && (win as ArenaFinalWindow).getMyRank() > 0)
         {
             FPortManager.Instance.getFPort <ArenaGetAwardInfoFinalFPort>().access(OnDataLoaded);
         }
     }
 }