void showAtt() { foreach (uint type in change_att[0].Keys) { curtype = type; GameObject clon = Instantiate(item); clon.SetActive(true); int nowAtt = PlayerModel.getInstance().attr_list[type]; clon.transform.FindChild("attValue").GetComponent <Text>().text = Globle.getAttrAddById((int)type, nowAtt - change_att[0][type]); int ss = 0; DOTween.To(() => ss, (float s) => { ss = (int)s; clon.transform.FindChild("addValue").GetComponent <Text>().text = Globle.getAttrAddById_value((int)type, ss, true); }, (float)nowAtt, 1f); clon.transform.SetParent(con, false); //change_att[0].Remove(curtype); // break; } wite(); }