#if UNITY_5_3_OR_NEWER using UnityEngine; #endif namespace ShrinkNetwork { public static class ShrinkNetworkRuntime { 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(); } private static void RebuildDefault() { Default = new ShrinkNetworkService(); ShrinkNetworkGeneratedRegistry.RegisterAll(Default); } } }