feat: add cross-engine runtime support

This commit is contained in:
2026-09-05 02:33:57 +08:00
parent 66c70653b1
commit 599b8e34c6
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -1,7 +1,9 @@
#nullable enable
using ShrinkEventBus;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
#endif
namespace ShrinkDataSaver.Integration
{
@@ -15,7 +17,9 @@ namespace ShrinkDataSaver.Integration
public static bool IsRegistered => _registered;
#if UNITY_5_3_OR_NEWER
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
#endif
private static void ResetStaticState()
{
Unregister();