public override void updateItem(GameObject item, int index) { GuildCollegeItem college = item.GetComponent <GuildCollegeItem> (); college.initInfo(skillIds[index], fatherWindow as GuildCollegeWindow); contribution.text = GuildManagerment.Instance.getGuild().contributioning.ToString(); }
public void updateItemByID(GameObject item, string skillId) { GuildCollegeItem college = item.GetComponent <GuildCollegeItem> (); college.initInfo(skillId, fatherWindow as GuildCollegeWindow); contribution.text = GuildManagerment.Instance.getGuild().contributioning.ToString(); }
public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as GuildCollegeWindow).guildCollegeItem); } nodeList [i].name = StringKit.intToFixString(i + 1); GuildCollegeItem college = nodeList [i].GetComponent <GuildCollegeItem> (); college.initInfo(skillIds [i], fatherWindow as GuildCollegeWindow); }