public void RemovePhysical(Physics phy) { phy.setMap(null); lock (_objects) { _objects.Remove(phy); } }
public void AddPhysical(Physics phy) { phy.setMap(this); lock (_objects) { _objects.Add(phy); } phy.StartMoving(); }