mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
remove EcsGroup.Release
This commit is contained in:
parent
5c714b068d
commit
e828864ca8
@ -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
|
||||
|
@ -24,7 +24,7 @@
|
||||
}
|
||||
protected sealed override void OnDestroy()
|
||||
{
|
||||
_filteredGroup.Release();
|
||||
_filteredGroup.Dispose();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user