Fix savefile name

This commit is contained in:
Lncvrt committed 2025-08-27 20:24:01 -07:00
1 parent 9ed59fbab3
commit 5e564bd8e9
1 file changed
+2 -2
+2 -2
View File
@@ -46,7 +46,7 @@ public class BazookaManager : MonoBehaviour
public void Load()
{
string path = Path.Join(Application.persistentDataPath, "save.dat");
string path = Path.Join(Application.persistentDataPath, "save.json");
if (!File.Exists(path))
{
File.Create(path).Dispose();
@@ -74,7 +74,7 @@ public class BazookaManager : MonoBehaviour
#if UNITY_EDITOR
return;
#else
string path = Path.Join(Application.persistentDataPath, "save.dat");
string path = Path.Join(Application.persistentDataPath, "save.json");
var encoded = Encoding.UTF8.GetBytes(saveFile.ToString());
using var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None);
fileStream.Write(encoded, 0, encoded.Length);