public static void RemoveOneObstacle() { if (obstacleCount > 0) { obstacleCount--; AllObstacles.RemoveAt(obstacleCount); } }
public static void RemoveOneObstacle() { if (ObstacleCount <= 0) { return; } ObstacleCount--; AllObstacles.RemoveAt(ObstacleCount); }