/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="triangle">Triangle collidable to return.</param> public static void GiveBack(TriangleCollidable triangle) { if (SubPoolTriangleCollidables == null) { SubPoolTriangleCollidables = new UnsafeResourcePool <TriangleCollidable>(); } triangle.CleanUp(); SubPoolTriangleCollidables.GiveBack(triangle); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="triangle">Triangle collidable to return.</param> public static void GiveBack(TriangleCollidable triangle) { if (SubPoolTriangleCollidables == null) SubPoolTriangleCollidables = new UnsafeResourcePool<TriangleCollidable>(); triangle.CleanUp(); SubPoolTriangleCollidables.GiveBack(triangle); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="triangle">Triangle collidable to return.</param> public static void GiveBack(TriangleCollidable triangle) { triangle.CleanUp(); SubPoolTriangleCollidables.GiveBack(triangle); }
/// <summary> /// Returns a resource to the pool. /// </summary> /// <param name="triangle">Triangle collidable to return.</param> public static void GiveBack(TriangleCollidable triangle) { triangle.CleanUp(); SubPoolTriangleCollidables.GiveBack(triangle); }