技能组件修改,由skillcom统一负责动画,只负责动画

This commit is contained in:
2025-02-08 08:06:42 +08:00
parent 8a6609f2c2
commit c619b97aa4
47 changed files with 450 additions and 555 deletions

View File

@@ -28,7 +28,7 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
if (!shouldStop) {
if(view.is_stop||view.is_dead) return //停止移动或者死亡不移动
// 计算移动量
const delta = view.speed * this.dt * move.direction;
const delta = (view.speed/3) * this.dt * move.direction;
const newX = view.node.position.x + delta;
view.status_change("move")