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(); } }
public static void RescrambleObstacles() { shuffledObstacleQueue = ScrambleObstacles.GenerateShuffledObstacleQueue(); Debug.Log("Obstacles Scrambled."); }