What you're describing is a Save System. You're on the right track with Player Prefs, they do persist between sessions. Depending on the amount of data you need to save there are better alternatives, but Player Prefs is fine for small amounts of data. You save the variable and give it a Key. When your game loads, it can get then get the variable in later sessions using that key.