feat: add shared codegen support

This commit is contained in:
2026-09-05 02:34:02 +08:00
parent dd13a01bc9
commit 26241cb534
4 changed files with 16 additions and 11 deletions
+5 -1
View File
@@ -1,17 +1,21 @@
#if UNITY_5_3_OR_NEWER
using UnityEngine;
#endif
namespace ShrinkNetwork
{
public static class ShrinkNetworkRuntime
{
public static ShrinkNetworkService Default { get; private set; }
public static ShrinkNetworkService Default { get; private set; } = null!;
static ShrinkNetworkRuntime()
{
RebuildDefault();
}
#if UNITY_5_3_OR_NEWER
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
#endif
private static void ResetOnPlayModeEnter()
{
RebuildDefault();