Exemple #1
0
    public IEnumerator SelfCCImplement()
    {
        SelfSkillObject = SelfDataCardSet.skill_obj;

        if (SelfCCSetBlock == null)
        {
            SelfCCSetBlock = transform.root.parent.Find("Canvas/BlockLayout/CardBlock").gameObject.GetComponent <CCardBockCtl>();
        }

        if (SelfCCSetStand == null)
        {
            SelfCCSetStand = transform.root.parent.Find("StandLayer/SelfStand").gameObject.GetComponent <CCardStandCtl>();
        }

        SelfCCSetBlock.level = SelfCC_Level;

        SelfCCSetBlock.is_self = 1;
        SelfCCSetStand.is_self = 1;
        // SelfCCSetStand_v2.is_self = 1;

        StartCoroutine(SelfCCSetBlock.InitCCLvFrame());
        StartCoroutine(SelfCCSetBlock.InitEquSetting(self_atk_equ, self_def_equ));
        StartCoroutine(SelfCCSetBlock.InitCCImg(SelfDataSet, SelfDataCardSet));
        StartCoroutine(SelfCCSetStand.InitCCImg(SelfDataCardSet));
        StartCoroutine(SelfCCSetSkill.InitCCImg2(SelfSkillObject));
        StartCoroutine(SelfCCSetPhase.InitCCImg2(SelfDataCardSet));
        yield return(true);
    }
Exemple #2
0
    public IEnumerator DuelCCImplement()
    {
        DuelSkillObject = DuelDataCardSet.skill_obj;

        if (DuelCCSetBlock == null)
        {
            DuelCCSetBlock = transform.root.parent.Find("Canvas/BlockLayout/DuelCardBlock").gameObject.GetComponent <CCardBockCtl>();
        }

        if (DuelCCSetStand == null)
        {
            DuelCCSetStand = transform.root.parent.Find("StandLayer/DuelStand").gameObject.GetComponent <CCardStandCtl>();
        }

        DuelCCSetBlock.level = DuelCC_Level;

        DuelCCSetBlock.is_self = 0;
        DuelCCSetStand.is_self = 0;

        StartCoroutine(DuelCCSetBlock.InitCCImg(DuelDataSet, DuelDataCardSet));
        StartCoroutine(DuelCCSetBlock.InitCCLvFrame());
        StartCoroutine(DuelCCSetBlock.InitEquSetting(duel_atk_equ, duel_def_equ));
        StartCoroutine(DuelCCSetStand.InitCCImg(DuelDataCardSet));
        StartCoroutine(DuelCCSetSkill.InitCCImg2(DuelSkillObject));
        StartCoroutine(DuelCCSetPhase.InitCCImg2(DuelDataCardSet));

        yield return(true);
    }