示例#1
0
 public void Awake()
 {
     DataMgr.SetLog(this);
     Commander.SetLog(this);
     UIMgr.SetLog(this);
     //>========================
     Starter.Initialized(this);
     AssetMgr.Initialized(LevelMgr);
     AssetBundleMgr.Initialized(LevelMgr, AssetBundleExtension);
     UIMgr.Initialized(AssetMgr, AssetBundleMgr);
     StageMgr.SetUpdateInterval(StageUpdateInterval);
     DontDestroyOnLoad(gameObject);
     Starter.RegisterOptionObject(gameObject);
     Starter.RegisterOptionByChildren(gameObject);
     Instance = GetComponent <IGameInstance>();
 }