diff --git a/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs b/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs index 3205f7b..ffd2d74 100644 --- a/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs +++ b/GFramework.Core.Godot/system/AbstractResourceFactorySystem.cs @@ -51,7 +51,7 @@ public abstract class AbstractResourceFactorySystem : AbstractSystem, IResourceF /// 场景节点类型,必须继承自Node /// 场景在资产目录中的键名 /// 是否需要预加载该场景资源 - private void RegisterScene( + protected void RegisterScene( string sceneKey, bool preload = false) where T : Node @@ -72,7 +72,7 @@ public abstract class AbstractResourceFactorySystem : AbstractSystem, IResourceF /// 资源在资产目录中的键名 /// 是否需要复制资源实例 /// 是否需要预加载该资源 - private void RegisterResource( + protected void RegisterResource( string resourceKey, bool duplicate = false, bool preload = false)