添加新技能

This commit is contained in:
2025-10-15 22:56:55 +08:00
parent 9e2ae6f30f
commit 7ec02c4b9e
19 changed files with 3528 additions and 1823 deletions

View File

@@ -3,6 +3,7 @@ import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs
import { CCComp } from "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { HeroViewComp } from "../../hero/HeroViewComp";
import { SkillCom } from "../SkillCom";
import { AtkConCom } from "../../skill/AtkConCom";
const { ccclass, property } = _decorator;
@@ -17,7 +18,9 @@ export class AtkComComp extends CCComp {
}
public atk(args:any){
let skill=this.node.getComponent(SkillCom)
let scom=this.node.getComponent(SkillCom)
let acom=this.node.getComponent(AtkConCom)
let skill=scom?scom:acom
let dis=this.node.getComponent(UITransform).width/2
let targetsInRange: HeroViewComp[] = []