Пример #1
0
        void Start()
        {
            // Retrieve obstacle dictionary.
            if (obstacleDictionary == null)
            {
                obstacleDictionary = GenericReader.GetObstacles();
                Debug.Log("Updated obstacleDictionary.");
            }

            // Retrieve obstacle queue.
            if (shuffledObstacleQueue == null || shuffledObstacleQueue.Count == 0)
            {
                Debug.Log("shuffledObstacleQueue is empty (or null). Updating...");
                shuffledObstacleQueue = ScrambleObstacles.GenerateShuffledObstacleQueue();
            }
        }
Пример #2
0
 public static void RescrambleObstacles()
 {
     shuffledObstacleQueue = ScrambleObstacles.GenerateShuffledObstacleQueue();
     Debug.Log("Obstacles Scrambled.");
 }