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