diff --git a/GFramework.Core/ecs/EcsSystemBase.cs b/GFramework.Core/ecs/EcsSystemBase.cs
index b978bfe..07784bb 100644
--- a/GFramework.Core/ecs/EcsSystemBase.cs
+++ b/GFramework.Core/ecs/EcsSystemBase.cs
@@ -13,7 +13,7 @@ public abstract class EcsSystemBase : AbstractSystem, IEcsSystem
///
/// ECS世界实例
///
- protected EcsWorld EcsWorld { get; private set; } = null!;
+ protected IEcsWorld EcsWorld { get; private set; } = null!;
///
/// 快捷访问内部World
@@ -35,7 +35,7 @@ public abstract class EcsSystemBase : AbstractSystem, IEcsSystem
///
protected override void OnInit()
{
- EcsWorld = this.GetService() ?? throw new InvalidOperationException(
+ EcsWorld = this.GetService() ?? throw new InvalidOperationException(
"EcsWorld not found in context. Make sure ECS is properly initialized.");
OnEcsInit();