加入了浮动小游戏功能和设置界面

运行时请手动修改运行库目录fdBrowser
This commit is contained in:
2025-12-24 06:02:06 +08:00
parent 1ab80e504e
commit eb9b6ba78a
1131 changed files with 148096 additions and 313 deletions
@@ -41,6 +41,17 @@ public class NoteSpawner : MonoBehaviour
private static int holdNoteIdCounter = 0; // 全局唯一长音符 ID 计数器
private const string NoteSpeedPrefKey = "noteSpeedMultiplier";
private void Awake()
{
// Load saved visual speed multiplier before any spawning logic uses it
float saved = PlayerPrefs.GetFloat(NoteSpeedPrefKey, speedMultiplier);
saved = Mathf.Clamp(saved, SpeedMultiplierMin, SpeedMultiplierMax);
speedMultiplier = saved;
if (GameConfig.verboseLogs) Debug.Log($"[NoteSpawner] Loaded speedMultiplier={speedMultiplier} from PlayerPrefs");
}
public void LoadBeatmap(Beatmap loadedBeatmap)
{
if (isSpawning) return;