Hi i made a game in different levels and every time that i want to replay a level it’s start with the same amount of lives as i collected in the previous game, someone knows how to destroy the level?
2 Answers
2Read the scripting manual about PlayerPrefs
Hi, I’m newbie in script and I’m experiance the same thing like syclamoth does. But I fix it with simple script just add amount of health in function start in the scene. So when that scene is loaded player always has the same amount of health.
Sorry for my english, I just want to share.
Or maybe someone has better solution
Explain your question better. You're really not being clear here. Levels get destroyed every time you load a new one, so it's probably some data storage mechanism that you're not resetting correctly.
– syclamoth