feat: add cross-engine runtime support

This commit is contained in:
cneicy committed 2026-09-05 02:33:52 +08:00
1 parent d94eeaf0e8
commit 53720a3b71
2 files changed
+6 -4

No files matched your search

+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)