23 lines
656 B
C#
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;
|
|
}
|
|
}
|
|
}
|