This commit is contained in:
2024-08-26 10:14:53 +08:00
parent 4f96558d36
commit 4f64af7848
13 changed files with 176 additions and 286 deletions

View File

@@ -20,12 +20,19 @@ export class MapSkillComp extends CCComp {
oops.message.on("do_use_skill", this.doSkill, this);
}
doSkill(event: string, args: any){
this.addSkill(args.uuid);
this.addCSkill(args.uuid);
}
addSkill(uuid:number=1001){
addSkill(){
}
addCSkill(uuid:number=1001,args:any=null){
let csk =ecs.getEntity<CSkill>(CSkill);
let scale = 1
let pos = v3(BoxSet.CSKILL_X*-scale,BoxSet.CSKILL_Y)
if(args){
pos = v3(args.x,args.y)
scale = args.scale
}
csk.load(pos,scale,uuid);
}
doMonsterLoad(){