特效新内容。修复gameplay致命bug和分数保存bug

This commit is contained in:
FloatGaming
2026-02-16 01:55:18 +08:00
parent 3a7a0b4669
commit 9f7c1c57b7
206 changed files with 112684 additions and 857 deletions
+4 -1
View File
@@ -29,10 +29,13 @@ namespace Bansonic
int totalFiles = 0;
int corruptedFiles = 0;
// 在主线程提前获取路径,避免子线程调用 Unity API 报错
string persistentPath = Application.persistentDataPath;
// 执行异步检查任务
await Task.Run(() =>
{
string path = Application.persistentDataPath;
string path = persistentPath;
string[] files = Directory.GetFiles(path, "SongData_*.json");
totalFiles = files.Length;