示例#1
0
 public void RemovePhysical(Physics phy)
 {
     phy.SetMap(null);
     lock (_objects)
     {
         _objects.Remove(phy);
     }
 }
示例#2
0
 public void AddPhysical(Physics phy)
 {
     phy.SetMap(this);
     lock (_objects)
     {
         _objects.Add(phy);
     }
 }