Пример #1
0
 /// <summary>
 /// Removes all the objects from the Pipe.
 /// </summary>
 internal void Clear()
 {
     if (ObjectQueue != null)
     {
         ObjectQueue.Clear();
     }
 }
Пример #2
0
 /// <summary>
 /// 销毁所有池内对象;
 /// </summary>
 public void DestroyAll()
 {
     foreach (var item in ObjectQueue)
     {
         Destroy(item);
     }
     ObjectQueue.Clear();
 }