public void TargetImpact(SkillDeployer deployer, SkillData skillData, GameObject targetGo) { // 2 执行伤害 deployer.StartCoroutine(RepeatDamage(deployer, skillData)); }
/// <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)); }