com.alicizax.unity.entry/Runtime/GameAppStaticMemberReset.cs

26 lines
553 B
C#
Raw Normal View History

2025-04-02 19:28:28 +08:00
#if UNITY_EDITOR
using UnityEditor;
internal static class GameAppStaticMemberReset
{
2025-09-29 15:09:25 +08:00
[UnityEditor.Callbacks.DidReloadScripts]
2025-04-02 19:28:28 +08:00
private static void ResetAllEventContainers()
{
GameApp._base = null;
GameApp._audio = null;
GameApp._fsm = null;
GameApp._localization = null;
2025-08-06 13:28:34 +08:00
2025-07-14 17:03:29 +08:00
#if ALICIZAX_NETWORK
2025-04-02 19:28:28 +08:00
GameApp._network = null;
2025-07-14 17:03:29 +08:00
#endif
2025-04-02 19:28:28 +08:00
GameApp._objectPool = null;
GameApp._resource = null;
GameApp._scene = null;
GameApp._timer = null;
GameApp._ui = null;
}
}
#endif