コード例 #1
0
    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();
    }
コード例 #2
0
    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();
    }
コード例 #3
0
    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);
    }