chore: initialize standalone UPM package
Publish UPM package / publish (push) Failing after 1s

This commit is contained in:
2026-08-26 02:49:36 +08:00
commit efe3a22a06
36 changed files with 1736 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
namespace ShrinkCommand
{
public static class ShrinkCommandRuntime
{
public static ShrinkCommandService Default { get; private set; } = BuildDefault();
#if UNITY_5_3_OR_NEWER
[UnityEngine.RuntimeInitializeOnLoadMethod(UnityEngine.RuntimeInitializeLoadType.SubsystemRegistration)]
private static void ResetOnPlayModeEnter()
{
Default = BuildDefault();
}
#endif
private static ShrinkCommandService BuildDefault()
{
var service = new ShrinkCommandService();
ShrinkCommandGeneratedRegistry.RegisterAll(service);
return service;
}
}
}