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();
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.cneicy.shrink-datasaver-integration-eventbus",
|
||||
"version": "2.1.3",
|
||||
"version": "2.2.0",
|
||||
"displayName": "ShrinkDataSaver - EventBus Integration",
|
||||
"description": "ShrinkDataSaver 与 ShrinkEventBus 的桥接层,自动将存档/设置事件映射到事件总线。",
|
||||
"unity": "2022.3",
|
||||
@@ -8,10 +8,10 @@
|
||||
"changelogUrl": "https://git.crash.work/ShrinkSDK/ShrinkDataSaver.Integration.EventBus/src/branch/main/CHANGELOG.md",
|
||||
"licensesUrl": "https://github.com/cneicy/ShrinkDataSaver.Integration.EventBus/blob/main/LICENSE",
|
||||
"dependencies": {
|
||||
"com.cneicy.shrink-datasaver": "2.2.2",
|
||||
"com.cneicy.shrink-context-core": "0.1.0",
|
||||
"com.cneicy.shrink-datasaver": "2.3.0",
|
||||
"com.cneicy.shrink-context-core": "0.2.0",
|
||||
"com.cysharp.unitask": "2.5.10",
|
||||
"com.cneicy.shrink-eventbus": "2.0.1"
|
||||
"com.cneicy.shrink-eventbus": "2.1.0"
|
||||
},
|
||||
"keywords": [
|
||||
"save",
|
||||
|
||||
Reference in New Issue
Block a user