dd
This commit is contained in:
11
assets/script/game/GameBootstrap.ts
Normal file
11
assets/script/game/GameBootstrap.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ecs } from "../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
|
||||
export class GameBootstrap {
|
||||
init() {
|
||||
// 初始化ECS引擎
|
||||
ecs.init();
|
||||
|
||||
// 自动注册所有带@ecs.register装饰器的组件
|
||||
ecs.scan(/* 可以指定扫描路径 */);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user