diff --git a/assets/script/game/common/ecs/CommonEnter.ts b/assets/script/game/common/ecs/CommonEnter.ts index 891c36f..1ea2f52 100644 --- a/assets/script/game/common/ecs/CommonEnter.ts +++ b/assets/script/game/common/ecs/CommonEnter.ts @@ -2,7 +2,7 @@ * @Author: dgflash * @Date: 2021-07-03 16:13:17 * @LastEditors: dgflash - * @LastEditTime: 2022-05-09 09:46:22 + * @LastEditTime: 2022-05-10 11:36:35 */ import { ECSRootSystem } from '../../../core/libs/ecs/ECSSystem'; import { oops } from '../../../core/Oops'; @@ -13,14 +13,14 @@ import { CommonSystem } from './CommonSystem'; /** 游戏业务入口 */ export class CommonEnter extends Root { onLoad() { + super.onLoad(); + oops.ecs = new ECSRootSystem(); oops.ecs.add(new CommonSystem()) oops.ecs.init(); // 加载游戏配置 config.init(this.run.bind(this)); - - super.onLoad(); } /** 加载完引擎配置文件后执行 */