Пример #1
0
 public static PlayerRankingPanelManger GetInstance()
 {
     if (!instance)
     {
         instance = (PlayerRankingPanelManger)GameObject.FindObjectOfType(typeof(PlayerRankingPanelManger));
         if (!instance)
         {
             Debug.LogError("没有附加JewelBesetManager脚本的gameobject在场景中");
         }
     }
     return(instance);
 }
Пример #2
0
 void DetailBtnClick(object obj)
 {
     SoundManager.Instance.PlaySoundEffect("Sound_Button_Ranking_Detail");
     PlayerRankingPanelManger.GetInstance().ShowDetailePanel(RankingType.WeaponRanking, otherid);
 }
Пример #3
0
 void OnDestroy()
 {
     instance = null;
     UIEventManager.Instance.RemoveUIEventHandel(UIEventType.ReceiveRankingListRes, GetRankingListHandel);
 }