卡牌技能位置

This commit is contained in:
2024-08-21 11:08:40 +08:00
parent a7f168dd72
commit 3f18763730
9 changed files with 81 additions and 15 deletions

View File

@@ -19,8 +19,8 @@ export class MapSkillComp extends CCComp {
oops.message.on("hero_load", this.doHeroLoad, this);
oops.message.on("do_use_skill", this.doSkill, this);
}
doSkill(){
this.addSkill();
doSkill(event: string, args: any){
this.addSkill(args.uuid);
}
addSkill(uuid:number=1001){
let csk =ecs.getEntity<CSkill>(CSkill);