cun
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user