private void RegisterAllModules() { BagUIModule bagUIModule = new BagUIModule(); bagUIModule.Load(); ItemModule itemModule = new ItemModule(); itemModule.Load(); CharacterModule charaModule = new CharacterModule(); charaModule.Load(); CharacterModule characterModule = new CharacterModule(); //.....add }
protected override void OnLoadData() { base.OnLoadData(); _bagUIModule = ModuleManager.Instance.Get <BagUIModule>(); SetData(); }