public void Dispose() { _tree->Dispose(); UnsafeUtility.Free(_tree, _tree->Allocator); _tree = null; }
public DynamicTree(Allocator allocator) { _tree = (UnsafeDynamicTree <T> *)Mem.Malloc <UnsafeDynamicTree <T> >(allocator); *_tree = new UnsafeDynamicTree <T>(allocator); }