Open Cheeseness opened 10 years ago
Created script Config to allow load of files:
Write basic config xml as start
Function to load levels
Created script LevelSelect to allow level selection on menu:
Loads level names from Config.cs
Added to change level select on arrow key input
I've commented out the part that updates EditorBuildSettings.asset from Config.cs as of 588d16426efc5c33146c25b379314b19f8df9282 to reduce the number of merge conflicts and unexpected scene inclusion behaviour that several contributors have commented on.
Commented further as to comment levelsPath[] variable as its was only being used inside #if unity editor but was outside that scope
Im going to make the config.xml load from Resources if it doesn't exist in persistant data path working on this now
Load configuration variables from file at game start up and provide runtime access to them.