/*void OnDestroy() * { * * }*/ /*void Update() * { * if (Input.GetKeyUp(KeyCode.A)) * { * GameApp.SendMsg.GetRank(RankType.RankType_Achievement); * } * if (Input.GetKeyUp(KeyCode.B)) * { * GameApp.SendMsg.GetRank(RankType.RankType_PVE); * } * if (Input.GetKeyUp(KeyCode.C)) * { * * } * }*/ public void Show(bool isShow) { if (isShow) { gameObject.SetActive(true); AppearEffect.transform.localScale = Vector3.one * 0.01f; AppearEffect.Open(AppearType.Popup, AppearEffect.gameObject); ///////////////////////////////////////////////////// MyselfRI.ServerRankInfo.name = SerPlayerData.GetName(); MyselfRI.ServerRankInfo.score = SerPlayerData.GetCardCount(); CurShowRankType = 4; RankTitleLab.text = "收集卡牌排行榜"; RankTitleIcon.spriteName = "pic_biaoti_paiming"; RankValueDes.text = "卡牌数"; GameApp.SendMsg.GetRank(RankType.RankType_Card); ///////////////////////////////////////////////////// } else { AppearEffect.Close(AppearType.Popup, () => { gameObject.SetActive(false); }); } }