/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="list">List to return.</param> public static void GiveBack(RawList <float> list) { list.Clear(); SubPoolFloatList.GiveBack(list); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="set">Set to return.</param> public static void GiveBack(HashSet <int> set) { set.Clear(); SubPoolIntSet.GiveBack(set); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="list">List to return.</param> public static void GiveBack(RawList <RayHit> list) { list.Clear(); SubPoolRayHitList.GiveBack(list); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="list">List to return.</param> public static void GiveBack(RawList <int> list) { list.Clear(); SubPoolIntList.GiveBack(list); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="list">List to return.</param> public static void GiveBack(RawList <Vector3> list) { list.Clear(); SubPoolVectorList.GiveBack(list); }