- Home /
Can i activate an action from a past scene in that scene without it being on diplay?
I recently added energy for my game and tried adapting it so it suits it best. The energy script is in the Menu scene and i have something like this to trigger it : i am using 2 PlayerPrefs lets say A and B. B goes up by one if deaths == 5 in the level scene. If A< B UseEnergy() and then A ++. But this only triggers if you go back to the MENU. But i dont want that. I want it to trigger in the level scene as else it is unbalanced. Can anybody help me?
Your answer
![](https://koobas.hobune.stream/wayback/20220613025332im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What is the standard solution for preserving level data? 0 Answers
Is it safe to save values in a prefab instead of using PlayerPrefs? 0 Answers
How to use PlayerPrefs to stop an item from reappearing when you return to the level 2 Answers
PlayerPrefs Loading Scene wont work 1 Answer
AddComponent(ScriptN) based on what PlayerPrefs has 2 Answers