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