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