去掉碰撞系统

This commit is contained in:
walkpan
2025-02-02 14:48:06 +08:00
parent 6ea3e9504d
commit e571ae2caf
19 changed files with 857 additions and 66 deletions

View File

@@ -0,0 +1,17 @@
import { ecs } from "../../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
@ecs.register('BattleMove')
export class BattleMoveComp extends ecs.Comp {
/** 移动方向1向右-1向左 */
direction: number = 1;
/** 目标x坐标 */
targetX: number = 0;
/** 是否处于移动状态 */
moving: boolean = true;
reset() {
this.direction = 1;
this.targetX = 0;
this.moving = true;
}
}