//-------------------------------------------------------- 
 | 
//    [Author]:           玩个游戏 
 | 
//    [  Date ]:           Tuesday, July 24, 2018 
 | 
//-------------------------------------------------------- 
 | 
  
 | 
using System; 
 | 
using System.Collections; 
 | 
using System.Collections.Generic; 
 | 
using UnityEngine; 
 | 
using UnityEngine.UI; 
 | 
  
 | 
  
 | 
public class MainBossEnterWin : UIBase 
 | 
{ 
 | 
    [SerializeField] Text fbNameText; 
 | 
    [SerializeField] Button CloseBtn; 
 | 
    [SerializeField] Button rankBtn; 
 | 
  
 | 
  
 | 
    protected override void InitComponent() 
 | 
    { 
 | 
        CloseBtn.AddListener(CloseWindow); 
 | 
        rankBtn.AddListener(()=> 
 | 
        { 
 | 
            RankModel.Instance.ResetQueryParam(); 
 | 
            RankModel.Instance.QueryRankByPage(0, watchID: (int)PlayerDatas.Instance.baseData.PlayerID); 
 | 
            var win = UIManager.Instance.OpenWindow<PlayerRankWin>(); 
 | 
            win.rankType = 0; 
 | 
             
 | 
        }); 
 | 
    } 
 | 
  
 | 
    protected override void OnPreOpen() 
 | 
    { 
 | 
  
 | 
    } 
 | 
  
 | 
    protected override void OnOpen() 
 | 
    { 
 | 
    } 
 | 
  
 | 
    protected override void OnPreClose() 
 | 
    { 
 | 
  
 | 
    } 
 | 
  
 | 
    protected override void OnClose() 
 | 
    { 
 | 
        base.OnClose(); 
 | 
    } 
 | 
  
 | 
  
 | 
  
 | 
} 
 |