diff --git a/src/EcsGroup.cs b/src/EcsGroup.cs index 60d1a02..85129ca 100644 --- a/src/EcsGroup.cs +++ b/src/EcsGroup.cs @@ -157,7 +157,7 @@ namespace DCFApixels.DragonECS } #endregion - #region Constrcutors + #region Constrcutors/Dispose [MethodImpl(MethodImplOptions.AggressiveInlining)] public static EcsGroup New(EcsWorld world) { @@ -172,6 +172,7 @@ namespace DCFApixels.DragonECS _count = 0; } + public void Dispose() => _source.ReleaseGroup(this); #endregion #region Has/IndexOf @@ -517,11 +518,6 @@ namespace DCFApixels.DragonECS } #endregion - #region IDisposable/Release - public void Dispose() => Release(); - public void Release() => _source.ReleaseGroup(this); - #endregion - #region ThrowHalper #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS internal static class ThrowHelper diff --git a/src/Executors/EcsWhereExecutor.cs b/src/Executors/EcsWhereExecutor.cs index df9efb7..73c0b7a 100644 --- a/src/Executors/EcsWhereExecutor.cs +++ b/src/Executors/EcsWhereExecutor.cs @@ -24,7 +24,7 @@ } protected sealed override void OnDestroy() { - _filteredGroup.Release(); + _filteredGroup.Dispose(); } #endregion