Пример #1
0
 public static void RemoveOneObstacle()
 {
     if (obstacleCount > 0)
     {
         obstacleCount--;
         AllObstacles.RemoveAt(obstacleCount);
     }
 }
Пример #2
0
        public static void RemoveOneObstacle()
        {
            if (ObstacleCount <= 0)
            {
                return;
            }

            ObstacleCount--;
            AllObstacles.RemoveAt(ObstacleCount);
        }