feat: add cross-engine runtime support

This commit is contained in:
2026-09-05 02:33:52 +08:00
parent d94eeaf0e8
commit 53720a3b71
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -32,7 +32,9 @@ namespace ShrinkCommand.Integration
private static readonly Dictionary<ShrinkCommandService, ServiceRegistration> RegisteredByService = new();
private static IDisposable? _requestHandlerBinding;
#if UNITY_5_3_OR_NEWER
[UnityEngine.RuntimeInitializeOnLoadMethod(UnityEngine.RuntimeInitializeLoadType.SubsystemRegistration)]
#endif
private static void ResetStaticState()
{
lock (SyncRoot)