use same scene for dificult and easy game

hi!
i want to have scene where you can choose between two different levels (easy and difficult). if you klick on one of the levels it should load a new scene. the easy level contains less enemies than the difficult one. do i have to build a scene for the easy level and one for the difficult one, even though it is exactly the same game (apart from the amount of the enemies) or is there a way that i could use the same game and just change the amount of the enemies when easy or difficult is choosen?
thank you!

Sure you can use the same scene for two difficulty settings. How you do it depends on the kind of game: are enemy spawns scripted, or random? If they are random, just increase the spawn factor. If there are scripted, simply add a condition to your spawning script : if(difficulty = Difficulty.Difficult) do whatever. ( using a enum for difficulty here). There are other ways, it depends on what parameters you want to change!

Scripting wise, your menu scene should include a script with a static var for difficulty that also includes a DontDestroyOnLoad(this); command. It will be easy to access later on! Call it PlayerSettings for example, so you can check in any level what settings the player chose. You can even make the whole script accessible with only one stating var: var using : PlayerSettings, and in Awake() using=this; any public var of the script will be accessible by doing PlayerSettings.using.anyVar .

Hope this helps!

use your scripting skill… that’s all you can do. because with unity script, you can do all you need in Unity.