Exemplo n.º 1
0
    public void Init(LevelAgent attacker, List <LevelAgent> targets, List <DamageInfo> skillDamages)//, List<int> damages, bool blClearSkill = false, bool blJingHua = false
    {
        skillTargets = targets;
        sbs          = new List <SkillBase>();
        int nCount = gameObject.transform.childCount;

        for (int i = 0; i < nCount; i++)
        {
            SkillBase skill = gameObject.transform.GetChild(i).gameObject.GetComponent <SkillBase>();
            if (skill != null)
            {
                skill.AttachActor(attacker, targets, skillDamages);
                sbs.Add(skill);
                //totalTime += skill.totalTime;

                skill.isOver += OnItemSkillOver;
            }
        }

        //StartCoroutine(UpdateSelf());
    }