예제 #1
0
        /// <summary>
        /// 选择目标
        /// </summary>
        /// <returns></returns>
        private Transform SelectTarget(SkillData currentSkill)
        {
            //通过当前技能的预制体 拿到 释放器
            var targets = DeployerConfigFactory.CreateAttackSelector(currentSkill).DoSelect(currentSkill, transform);

            return(targets.Length != 0 ? targets[0] : null);
        }
예제 #2
0
 /// <summary>
 /// 选区算法对象 伤害影响效果对象创建
 /// </summary>
 private void ConfigDeployer()
 {
     selector   = DeployerConfigFactory.CreateAttackSelector(currentSkillData);
     impactList = DeployerConfigFactory.CreateImpact(currentSkillData);
 }