Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Can i activate an action from a past scene in that scene without it being on diplay?

$
0
0
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?

Viewing all articles
Browse latest Browse all 1333

Trending Articles