//判断星级并显示 void JudgeNumber(GameObject stars) { for (int i = 0; i < MyKeys.GetStarsMax(transform.name); i++) { stars.transform.GetChild(i).gameObject.SetActive(true); } }