feat: add cross-engine runtime support
This commit is contained in:
@@ -33,7 +33,11 @@ namespace ShrinkDataSaver.Integration.App
|
||||
// 编辑器/EditMode 环境下 DontDestroyOnLoad 会抛异常,驱动只在播放模式常驻
|
||||
ShrinkDataSaverRuntime.Initialize(new ShrinkDataSaverRuntimeConfig
|
||||
{
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
DontDestroyOnLoadDriver = UnityEngine.Application.isPlaying
|
||||
#else
|
||||
DontDestroyOnLoadDriver = false
|
||||
#endif
|
||||
});
|
||||
var facade = new ShrinkDataSaverService();
|
||||
ctx.Set(ServiceKey, facade, new ShrinkDataSaverAccessPolicy(facade));
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "com.cneicy.shrink-datasaver-integration-app",
|
||||
"version": "0.1.3",
|
||||
"version": "0.2.0",
|
||||
"displayName": "ShrinkDataSaver - App Integration",
|
||||
"description": "ShrinkDataSaver 与 ShrinkApp 的桥接层,提供宿主接管初始化与服务注册。",
|
||||
"unity": "2022.3",
|
||||
"dependencies": {
|
||||
"com.cneicy.shrink-datasaver": "2.2.2",
|
||||
"com.cneicy.shrink-app-core": "0.1.4",
|
||||
"com.cneicy.shrink-datasaver": "2.3.0",
|
||||
"com.cneicy.shrink-app-core": "0.2.0",
|
||||
"com.cysharp.unitask": "2.5.10",
|
||||
"com.cneicy.shrink-context-core": "0.1.0"
|
||||
"com.cneicy.shrink-context-core": "0.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
"save",
|
||||
|
||||
Reference in New Issue
Block a user