public void Unregister() { if (Parent.StaticFootprint) { Set?.Delete(this); } else { Dynamic?.Remove(this); } Set = null; Dynamic = null; }
public VMObstacleSet(VMObstacleSet last) { if (last.Root != -1) { Count = last.Count; Nodes = (VMObstacleSetNode[])last.Nodes.Clone(); Root = last.Root; FreeList = last.FreeList.ToList(); PoolInd = last.PoolInd; } else { InitNodes(64); } }