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);
     }
 }