AlicizaX/Client/Packages/com.alicizax.unity.entry/Runtime/GameAppStaticMemberReset.cs

26 lines
553 B
C#
Raw Normal View History

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