remove EcsGroup.Release

This commit is contained in:
Mikhail 2023-06-10 00:55:00 +08:00
parent 5c714b068d
commit e828864ca8
2 changed files with 3 additions and 7 deletions

View File

@ -157,7 +157,7 @@ namespace DCFApixels.DragonECS
} }
#endregion #endregion
#region Constrcutors #region Constrcutors/Dispose
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static EcsGroup New(EcsWorld world) public static EcsGroup New(EcsWorld world)
{ {
@ -172,6 +172,7 @@ namespace DCFApixels.DragonECS
_count = 0; _count = 0;
} }
public void Dispose() => _source.ReleaseGroup(this);
#endregion #endregion
#region Has/IndexOf #region Has/IndexOf
@ -517,11 +518,6 @@ namespace DCFApixels.DragonECS
} }
#endregion #endregion
#region IDisposable/Release
public void Dispose() => Release();
public void Release() => _source.ReleaseGroup(this);
#endregion
#region ThrowHalper #region ThrowHalper
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
internal static class ThrowHelper internal static class ThrowHelper

View File

@ -24,7 +24,7 @@
} }
protected sealed override void OnDestroy() protected sealed override void OnDestroy()
{ {
_filteredGroup.Release(); _filteredGroup.Dispose();
} }
#endregion #endregion