- Home /
Dynamic Star System with PlayerPrefs
I figured this out and my question made no sense. I tried to delete it but couldn't.
@hexagonius haha, oops, I forgot to ask an actual question.
Everything seems to work except for the stars and unlocking system. I'm trying to use playerprefs to set 1 star if the player collects the goalValue but has less than starting health, 2 stars if they do so with starting health, and 3 stars if they finish with more health than they started with. Also, if they have 1 star, I want to unlock the next level.
The issue I'm having is that I just started with Unity and C# (or any program$$anonymous$$g, really) and I just don't understand enough to generalize what I've learned so far. The level buttons are created dynamically and they pass variables such as spawnrate, background, etc. onclick. I just can't seem to activate the stars and unlock the next level (make interactable) within the single scene.
Answer by Maxigator · Dec 18, 2018 at 03:47 PM
TryParse
@$$anonymous$$axigator Thank you; that seems like it'll answer a major part of my question; I need to figure out where/how to use it. Other than that, am I on the right track?
$$anonymous$$uch appreciated!
Your answer
Follow this Question
Related Questions
How to make PlayerPrefs delete if the player didn't touch game finish collider 1 Answer
New scene for minigame or not? 1 Answer
How do i imports my variable to another variable and save it with PlayerPrefs? 0 Answers
what is the best way to go next levels ? 1 Answer
How Can I save my values with Toggles in UI canvas 4.6 through scenes? 3 Answers