超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user