예제 #1
0
    IEnumerator RefreshBlock(BlockController _blc)
    {
        _blc.SetBlockLevel(_blc.blockId, ParseAll.WhatBlockParse.Technology);
        _blc.SetTitle();
        _blc.ClearRequairments();
        _blc.SetRequairments(LoginController.xmlDoc.text, ParseAll.WhatBlockParse.Technology);

        yield return null;
    }
예제 #2
0
    IEnumerator RefreshBlock(BlockController _blc)
    {
        _blc.SetBlockLevel(_blc.blockId, ParseAll.WhatBlockParse.Technology);
        _blc.SetTitle();
        _blc.ClearRequairments();
        _blc.SetRequairments(LoginController.xmlDoc.text, ParseAll.WhatBlockParse.Technology);

        yield return(null);
    }
예제 #3
0
    IEnumerator TechInst(GameObject goInst, XmlClass buidings, int _id)
    {
        goInst = buidings.analyseGO(_id, (int)WhatBlockParse.Technology, prefabTech, avatarTech, infoTech, downbarTech, xmlDoc.text);
        goInst = Instantiate(goInst);
        goInst.transform.SetParent(parentGOTech);
        goInst.transform.localScale = new Vector3(1, 1, 1);

        BlockController blc = goInst.GetComponent <BlockController>();

        blc.SetBlockName();
        blc.SetAvatar();
        blc.SetBlockLevel(_id, WhatBlockParse.Technology);
        blc.SetTitle();
        blc.SetDesc();
        blc.ClearRequairments();
        blc.SetRequairments(xmlDoc.text, WhatBlockParse.Technology);

        upGradeBtnTech = goInst.transform.FindChild("DownBar").FindChild("UpgradeButton").GetComponent <Button>();
        upGradeBtnTech.onClick.AddListener(() => { UpGradeBuildResearchTech((int)WhatBlockParse.Technology); });
        yield return(null);
    }