CommonEnter.ts

This commit is contained in:
dgflash
2022-05-10 11:41:34 +08:00
parent ffedad7185
commit 0b3d884bba

View File

@@ -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();
}
/** 加载完引擎配置文件后执行 */