添加新技能
This commit is contained in:
@@ -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[] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user