diff --git a/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs b/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs index a3a1b69..9dcd006 100644 --- a/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs +++ b/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs @@ -26,11 +26,11 @@ public abstract class AbstractResourceFactorySystem : AbstractSystem, IResourceF _registry = new ResourceFactory.Registry(); _resourceLoadSystem = this.GetSystem(); _assetCatalogSystem = this.GetSystem(); - // 注册资源 - RegisterResources(); // 监听架构初始化事件 this.RegisterEvent(_ => { + // 注册资源 + RegisterResources(); // 预加载所有资源 _registry.PreloadAll(); });