Exemplo n.º 1
0
    IEnumerator IA()
    {
        yield return(new WaitForSeconds(1f));

        Skill skill = this.skills[Random.Range(0, this.skills.Length)];

        skill.SetEmitter(this);

        if (skill.needsManualTargeting)
        {
            Fighter[] targets = this.GetSkillTargets(skill);

            Fighter target = targets[Random.Range(0, targets.Length)];

            skill.AddReceiver(target);
        }
        else
        {
            this.AutoConfigureSkillTargeting(skill);
        }

        this.combatManager.OnFighterSkill(skill);
    }