feat: add cross-engine runtime support
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
|
|
||||||
using ShrinkEventBus;
|
using ShrinkEventBus;
|
||||||
|
#if UNITY_5_3_OR_NEWER
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ShrinkDataSaver.Integration
|
namespace ShrinkDataSaver.Integration
|
||||||
{
|
{
|
||||||
@@ -15,7 +17,9 @@ namespace ShrinkDataSaver.Integration
|
|||||||
|
|
||||||
public static bool IsRegistered => _registered;
|
public static bool IsRegistered => _registered;
|
||||||
|
|
||||||
|
#if UNITY_5_3_OR_NEWER
|
||||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||||
|
#endif
|
||||||
private static void ResetStaticState()
|
private static void ResetStaticState()
|
||||||
{
|
{
|
||||||
Unregister();
|
Unregister();
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-datasaver-integration-eventbus",
|
"name": "com.cneicy.shrink-datasaver-integration-eventbus",
|
||||||
"version": "2.1.3",
|
"version": "2.2.0",
|
||||||
"displayName": "ShrinkDataSaver - EventBus Integration",
|
"displayName": "ShrinkDataSaver - EventBus Integration",
|
||||||
"description": "ShrinkDataSaver 与 ShrinkEventBus 的桥接层,自动将存档/设置事件映射到事件总线。",
|
"description": "ShrinkDataSaver 与 ShrinkEventBus 的桥接层,自动将存档/设置事件映射到事件总线。",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
@@ -8,10 +8,10 @@
|
|||||||
"changelogUrl": "https://git.crash.work/ShrinkSDK/ShrinkDataSaver.Integration.EventBus/src/branch/main/CHANGELOG.md",
|
"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",
|
"licensesUrl": "https://github.com/cneicy/ShrinkDataSaver.Integration.EventBus/blob/main/LICENSE",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.cneicy.shrink-datasaver": "2.2.2",
|
"com.cneicy.shrink-datasaver": "2.3.0",
|
||||||
"com.cneicy.shrink-context-core": "0.1.0",
|
"com.cneicy.shrink-context-core": "0.2.0",
|
||||||
"com.cysharp.unitask": "2.5.10",
|
"com.cysharp.unitask": "2.5.10",
|
||||||
"com.cneicy.shrink-eventbus": "2.0.1"
|
"com.cneicy.shrink-eventbus": "2.1.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"save",
|
"save",
|
||||||
|
|||||||
Reference in New Issue
Block a user