Fix version not being in savefile

This commit is contained in:
2025-08-26 18:41:51 -07:00
parent 048d6d4734
commit bc9d8693fb

View File

@@ -62,6 +62,10 @@ public class BazookaManager : MonoBehaviour
Debug.LogWarning("Failed to load save file");
}
}
if (saveFile["version"] == null || saveFile["version"].ToString() != "0")
{
saveFile["version"] = "0";
}
if (!PlayerPrefs.HasKey("LegacyConversion"))
{
PlayerPrefs.SetInt("LegacyConversion", 1);