public static void Load()
 {
     if (instance == null)
     {
         instance = Baluga3Object.GetOrAdd <SceneLoadDisposal>();
     }
 }
Пример #2
0
 public static void Register(IUpdating t, bool autoDispose = false)
 {
     Load();
     instance.clients.Add(t);
     if (autoDispose)
     {
         SceneLoadDisposal.Add(t);
     }
 }