Initial Unity project commit

This commit is contained in:
2026-07-08 19:53:15 +08:00
commit 75f254212e
15657 changed files with 11633879 additions and 0 deletions
@@ -0,0 +1,28 @@
using UnityEngine;
using UnityEditor;
using System.IO;
public class SaveDataCleaner : EditorWindow
{
[MenuItem("Tools/Clear Save Data")]
public static void ClearSaveData()
{
string savePath = Path.Combine(Application.persistentDataPath, "savegame.json");
if (File.Exists(savePath))
{
File.Delete(savePath);
Debug.Log($"[SaveDataCleaner] 已删除存档文件: {savePath}");
}
else
{
Debug.LogWarning("[SaveDataCleaner] 未找到存档文件,无需清理。");
}
// 还可以清理 PlayerPrefs (如果有用到)
// PlayerPrefs.DeleteAll();
// Debug.Log("[SaveDataCleaner] 已清理 PlayerPrefs。");
AssetDatabase.Refresh();
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b5a26c118a2e0d44587e95e4b664480d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: