去掉物理碰撞组件,英雄的移动改由系统逻辑统一处理
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
* @LastEditTime: 2022-07-25 17:05:02
|
||||
*/
|
||||
import { ecs } from "../../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { BattleMoveSystem } from "./BattleMoveSystem";
|
||||
import { MoveToSystem } from "./MoveTo";
|
||||
|
||||
export class EcsPositionSystem extends ecs.System {
|
||||
constructor() {
|
||||
super();
|
||||
this.add(new MoveToSystem());
|
||||
this.add(new BattleMoveSystem());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user