private void CreateObstacle(Point point) { Obstacle obstacle = new Obstacle(point, false); Mars.AddObstacle(obstacle); }
private void DestroyObstacle(Obstacle obstacle) { Mars.RemoveObstacle(obstacle); }
protected virtual void DestroyObstacle(Obstacle obstacle) { Mars.RemoveObstacle(obstacle); }
public void AddObstacle(Obstacle obstacle) { _obstacles.Add(obstacle); }
public void RemoveObstacle(Obstacle obstacle) { _obstacles.Remove(obstacle); }