feat: add cross-engine runtime support
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user