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

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