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

This commit is contained in:
2026-08-26 02:50:34 +08:00
commit 8eaaa3040a
139 changed files with 9309 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
using UnityEngine;
namespace ShrinkNetwork
{
public static class ShrinkNetworkRuntime
{
public static ShrinkNetworkService Default { get; private set; }
static ShrinkNetworkRuntime()
{
RebuildDefault();
}
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
private static void ResetOnPlayModeEnter()
{
RebuildDefault();
}
private static void RebuildDefault()
{
Default = new ShrinkNetworkService();
ShrinkNetworkGeneratedRegistry.RegisterAll(Default);
}
}
}