예제 #1
0
 public void TargetImpact(SkillDeployer deployer, SkillData skillData, GameObject targetGo)
 {
     // 2 执行伤害
     deployer.StartCoroutine(RepeatDamage(deployer, skillData));
 }
예제 #2
0
        /// <summary>
        /// 创建攻击区域类型
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static IAttackSelector CreateAttackSelector(SkillData data)
        {
            string classNameAll = "ARPGDemo.Skill." + data.selectorType + "AttackSelector";

            return(CreateObject <IAttackSelector>(classNameAll));
        }