mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(ResourceFactorySystem): 更新资源工厂系统依赖注入
- 添加 System 命名空间引用 - 将 _assetCatalogSystem 替换为 _resourceLoadSystem - 保持原有的资产目录系统注入逻辑
This commit is contained in:
parent
0c9063a5fd
commit
ba8e9b5bb3
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using GFramework.Core.Abstractions.enums;
|
||||
using GFramework.Core.extensions;
|
||||
using GFramework.Core.system;
|
||||
@ -64,7 +65,7 @@ public abstract class AbstractResourceFactorySystem : AbstractSystem, IResourceF
|
||||
protected override void OnInit()
|
||||
{
|
||||
_registry = new ResourceFactory.Registry();
|
||||
_assetCatalogSystem = this.GetSystem<IAssetCatalogSystem>();
|
||||
_resourceLoadSystem = this.GetSystem<IResourceLoadSystem>();
|
||||
_assetCatalogSystem = this.GetSystem<IAssetCatalogSystem>();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user