refactor(skill): 技能初步完成,下一步完善伤害系统

重命名SMoveData组件并修复组件添加方式
将SMoveData组件重命名为SMoveDataComp以保持命名一致性
修复Skill类中组件添加方式,明确指定组件类型参数
This commit is contained in:
2025-10-31 11:06:17 +08:00
parent 3b21ee4048
commit 8c597ae008
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import { BoxSet } from "../common/config/BoxSet";
* 技能移动数据组件
* 存储技能实体的移动相关数据
*/
@ecs.register('SMoveData')
@ecs.register('SMoveDataComp')
export class SMoveDataComp extends ecs.Comp {
/** 起始位置 */
startPos: Vec3 = null;