feat: add cross-engine runtime support
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
|
#if UNITY_5_3_OR_NEWER
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ShrinkContext
|
namespace ShrinkContext
|
||||||
{
|
{
|
||||||
@@ -13,7 +15,9 @@ namespace ShrinkContext
|
|||||||
|
|
||||||
public static ShrinkContextRuntime Default => _default ??= new ShrinkContextRuntime();
|
public static ShrinkContextRuntime Default => _default ??= new ShrinkContextRuntime();
|
||||||
|
|
||||||
|
#if UNITY_5_3_OR_NEWER
|
||||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||||
|
#endif
|
||||||
private static void ResetStaticState()
|
private static void ResetStaticState()
|
||||||
{
|
{
|
||||||
_default = null;
|
_default = null;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-context-core",
|
"name": "com.cneicy.shrink-context-core",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"displayName": "ShrinkContext Core",
|
"displayName": "ShrinkContext Core",
|
||||||
"description": "Cordis 时空可组合性范式的 Unity/C# 原型核心:可逆效应追踪、响应式余效应与组件纤程生命周期。",
|
"description": "Cordis 时空可组合性范式的 Unity/C# 原型核心:可逆效应追踪、响应式余效应与组件纤程生命周期。",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user