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 = 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(); } }