Files
ShrinkCommand/Runtime/Core/ShrinkCommandRuntime.cs
T
cneicy efe3a22a06
Publish UPM package / publish (push) Failing after 1s
chore: initialize standalone UPM package
2026-08-26 02:49:36 +08:00

23 lines
656 B
C#

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;
}
}
}