/// <summary> Deallocates an entity and adds it back to the pool. </summary> /// <param name="templet"> The type of object to deallocate. </param> /// <param name="entity"> The specifc object to deallocate. </param> protected void DeallocateEntity(IPoolable templet, IPoolable entity) { this.objectPools[templet][entity.GetReferenceIndex()].Deallocate(); }