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