修复 伤害错误
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user