伤害技能添加,技能还需完善

This commit is contained in:
2024-08-26 23:42:38 +08:00
parent 8a44a15153
commit ede4ffd4ca
20 changed files with 1439 additions and 330 deletions

View File

@@ -66,6 +66,8 @@ export class CSkill extends ecs.Entity {
skill_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){
var mv = node.getComponent(CSkillComp)
mv.scale = 1;
mv.skill_uuid = uuid;
mv.atk=SkillSet[uuid].atk;
this.add(mv);
}