Пример #1
0
 public static void DestroyAll()
 {
     foreach (var mono in MonoBehaviours)
     {
         WaitingForDestruction.Enqueue(mono);
     }
 }
Пример #2
0
 public static void Destroy(MonoBehaviour monoBehaviour)
 {
     WaitingForDestruction.Enqueue(monoBehaviour);
 }