Example #1
0
 public static int Add(InitBehaviour initBehaviour, bool waitingQueue = false)
 {
     initBehaviours.Add(initBehaviour);
     if (waitingQueue)
     {
         initQueue.Add(++initQueueIndex);
         return(initQueueIndex);
     }
     return(-1);
 }
Example #2
0
 public static void Remove(InitBehaviour initBehaviour)
 {
     if (_isInitializing)
     {
         removedBehaviours.Add(initBehaviour);
     }
     else
     {
         initBehaviours.Remove(initBehaviour);
     }
 }