changing mode before loading a scene
Hello! I am looking for a way to activate a mode (easy / difficult) before loading the scene. My scene has such a structure, that there is three packs of GameObjects: 1. All the stage gameObjects 2. Easy mode gameObjects 3. Difficult mode gameObjects I was expecting to do something like "Application.load(0)" ("0" meaning "easy mode" for example)
Does someone know how I can do it?
Answer by VesuvianPrime · Aug 21, 2015 at 08:07 PM
There are two potential solutions I see to this problem:
Store the difficulty in PlayerPrefs, when your level loads read PlayerPrefs to see what difficulty to setup.
Use DontDestroyOnLoad to keep your difficulty objects through the scene transition.
Answer by Armulis · Aug 22, 2015 at 10:36 PM
What do you mean by "keep your difficulty objects through the scene transition"? My difficulty objects are bigger monsters or smaller bonuses, for example. I can't "keep" it anyhow because they only exist in the game scene...
Your answer
Follow this Question
Related Questions
Can't use blur 0 Answers
Updating Visual Studio Editor broke all my code. 0 Answers
Random Range function changed? 2 Answers
Tooltip doesn't work 0 Answers
How do i transfer or access scripts from 1 project to another project ? 0 Answers