public void UpdateRoleEachSkillValue(TP_Info info, int role, int team) { int curValue = 0; for (int cnt = 0; cnt < 4; cnt++) { curValue = (int)info.GetMagicSkill(cnt).CurValue; roomEachSkillUIpage[cnt + ((role) + (team - 1) * 3) * 5].transform.Find("PowerTag/Value").GetComponent <UILabel>().text = curValue.ToString(); } curValue = (int)info.GetSuperSkill().CurValue; roomEachSkillUIpage[4 + ((role) + (team - 1) * 3) * 5].transform.Find("PowerTag/Value").GetComponent <UILabel>().text = curValue.ToString(); }