新增全局管理器

This commit is contained in:
yhh
2020-06-18 12:14:06 +08:00
parent 231276e39b
commit 915056203d
8 changed files with 175 additions and 2 deletions

View File

@@ -95,6 +95,11 @@ class Scene extends egret.DisplayObjectContainer {
public update(){
Time.update(egret.getTimer());
for (let i = GlobalManager.globalManagers.length - 1; i >= 0; i --){
if (GlobalManager.globalManagers[i].enabled)
GlobalManager.globalManagers[i].update();
}
this.entities.updateLists();
if (this.entityProcessors)