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