Fix for starting new game window on first run

This commit is contained in:
Jakub Sztuba 2023-01-06 21:52:59 +01:00
parent 134500c1eb
commit cc6146631b

View File

@ -43,7 +43,7 @@ public class NewGame : MonoBehaviour
float health = 10.0f; float health = 10.0f;
PlayerPrefs.SetFloat("maxHealth", 10); PlayerPrefs.SetFloat("maxHealth", 10);
PlayerPrefs.SetFloat("health", 10); PlayerPrefs.SetFloat("health", 10);
PlayerPrefs.SetInt("HasEverPlayed",1);
//PlayerPrefs.SetInt("continued", 0); //PlayerPrefs.SetInt("continued", 0);
PlayerPrefs.SetInt("rock", 0); // Is it used anywhere? I have not found it PlayerPrefs.SetInt("rock", 0); // Is it used anywhere? I have not found it