예제 #1
0
 /// <summary>
 /// Destroys script
 /// </summary>
 /// <param name="script"></param>
 public void Destroy(QBehavior script)
 {
     script.IsDestroyed = true;
     if (!DestroyQueue.Contains(script))
     {
         DestroyQueue.Enqueue(script);
     }
 }
예제 #2
0
        /// <summary>
        /// Removes all the items from the destroy queue
        /// </summary>
        internal void ObjectDestroyer()
        {
/*			for(var i = 0; i < DestroyQueue.Count; i++)
 *                              Obliterate(DestroyQueue[i]);*/
            while (DestroyQueue.Count > 0)
            {
                Obliterate(DestroyQueue.Dequeue());
            }
        }