Update SingletonSystem.cs

This commit is contained in:
ALEXTANG
2024-05-24 14:00:51 +08:00
parent b00679a276
commit 7914660f8c

View File

@@ -82,7 +82,7 @@ namespace GameBase
if (_singletons != null) if (_singletons != null)
{ {
for (int i = 0; i < _singletons.Count; ++i) for (int i = _singletons.Count -1; i >= 0; i--)
{ {
_singletons[i].Release(); _singletons[i].Release();
} }