コード例 #1
0
 public void Unregister()
 {
     if (Parent.StaticFootprint)
     {
         Set?.Delete(this);
     }
     else
     {
         Dynamic?.Remove(this);
     }
     Set     = null;
     Dynamic = null;
 }
コード例 #2
0
 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);
     }
 }