This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user