修复 伤害错误

This commit is contained in:
2025-03-26 16:57:15 +08:00
parent 8b33abb973
commit 63e182e214
3 changed files with 6 additions and 56 deletions

View File

@@ -44,6 +44,7 @@ export class Skill extends ecs.Entity {
console.log("加载预制体:",startPos,targetPos)
// 添加技能组件
const skillComp = node.getComponent(SkillCom); // 初始化技能参数
skillComp.s_uuid = uuid;
skillComp.animType = config.AnimType;
skillComp.endType = config.endType;
skillComp.speed = config.speed;