// ------------------------------------------------------------------ public void OpenAchieve() { ClearNowPage(); SetBg(0); foreach (Tuple <ENUM_Achievement, int> itor in Rule.AchievementShow()) { GameObject pObj = SysUI.pthis.CreateUI(pGridAchieve.gameObject.gameObject, "Prefab/G_Achievement"); G_Achievement pScript = pObj.GetComponent <G_Achievement>(); if (pScript) { pScript.pAchieve = itor.Item1; pScript.iLevel = itor.Item2; pObj.name = pScript.pAchieve.ToString() + pScript.iLevel.ToString(); } NowObj.Add(pObj); } pDrag.target = pGridAchieve.gameObject.transform; pGridAchieve.Reposition(); }