超大量的更新 修复很多问题,gameplay特效初步

This commit is contained in:
FloatGaming
2026-02-14 23:46:20 +08:00
parent ef8eb67259
commit 3a7a0b4669
360 changed files with 85670 additions and 4144 deletions
+26 -1
View File
@@ -1,11 +1,36 @@
using UnityEngine;
public static class GameConfig
{
// Toggle detailed logging for debugging. Keep false in production for performance.
public static bool verboseLogs = false;
// Toggle skill effect logging.
public static bool skillDebugMode = true;
public static bool skillDebugMode = false;
// When true, gameplay will not automatically read JSON beatmaps on Start.
public static bool testMode = false;
public const string PrefKey_AutoPlayEnabled = "AutoPlayEnabled";
// When true, notes will be judged automatically as Perfect (autoplay).
public static bool autoPlayEnabled = false;
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void LoadOnBoot()
{
LoadPrefs();
}
public static void LoadPrefs()
{
autoPlayEnabled = PlayerPrefs.GetInt(PrefKey_AutoPlayEnabled, 0) == 1;
}
public static void SetAutoPlayEnabled(bool enabled)
{
autoPlayEnabled = enabled;
PlayerPrefs.SetInt(PrefKey_AutoPlayEnabled, enabled ? 1 : 0);
PlayerPrefs.Save();
}
}