public void AddObject(GameObject o) { listOfGameObjects.Add(o); }
public void RemoveObject(GameObject o) { listOfGameObjects.Remove(o); }
private bool ObjectsCollide(GameObject first, GameObject second) { RectangleF rectFirst = first.GetObjectBounds(); RectangleF rectSecond = second.GetObjectBounds(); return rectFirst.IntersectsWith(rectSecond); }