This commit is contained in:
2026-06-21 00:07:26 +08:00
parent 5f8e596c59
commit cda061be1e
194 changed files with 23731 additions and 5083 deletions
@@ -54,6 +54,18 @@ public class GameManager : MonoSingleton<GameManager>
}
protected override void Awake()
{
// ⭐ 游戏启动时加载已保存的画质和帧率设置
int quality = PlayerPrefs.GetInt("GraphicsQuality", 1);
QualitySettings.SetQualityLevel(quality, true);
int fps = PlayerPrefs.GetInt("TargetFps", 1);
Application.targetFrameRate = fps switch
{
0 => 30,
1 => 60,
2 => -1,
_ => 60
};
AudioResourcesData audioResourcesData=new AudioResourcesData();
InItLoad();