From 7914660f8caed21cddebfc5a115af64e3d3e8c69 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 24 May 2024 14:00:51 +0800 Subject: [PATCH] Update SingletonSystem.cs --- .../Assets/GameScripts/HotFix/GameBase/SingletonSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameBase/SingletonSystem.cs b/UnityProject/Assets/GameScripts/HotFix/GameBase/SingletonSystem.cs index 99bde03cd..6697b3138 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameBase/SingletonSystem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameBase/SingletonSystem.cs @@ -82,7 +82,7 @@ public static void Release() if (_singletons != null) { - for (int i = 0; i < _singletons.Count; ++i) + for (int i = _singletons.Count -1; i >= 0; i--) { _singletons[i].Release(); }