public static void Load() { if (instance == null) { instance = Baluga3Object.GetOrAdd <SceneLoadDisposal>(); } }
public static void Register(IUpdating t, bool autoDispose = false) { Load(); instance.clients.Add(t); if (autoDispose) { SceneLoadDisposal.Add(t); } }