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

@ -30,7 +30,7 @@ public class NewGame : MonoBehaviour
int isQuest = 1; int isQuest = 1;
PlayerPrefs.SetInt("lumberjack", isQuest); PlayerPrefs.SetInt("lumberjack", isQuest);
/* /*
int isKilled = 0; int isKilled = 0;
PlayerPrefs.SetInt("bat0", isKilled); PlayerPrefs.SetInt("bat0", isKilled);
@ -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