Skip to content

Commit

Permalink
check for key
Browse files Browse the repository at this point in the history
Signed-off-by: Alptuğ Cırıt <[email protected]>
  • Loading branch information
mozhoku committed Aug 16, 2024
1 parent 3e313da commit 0209b06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/AWSIM/Scripts/UI/GraphicsSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public class GraphicsSettings : MonoBehaviour
private void Awake()
{
// Initialize PlayerPref Keys
PlayerPrefs.SetInt(UserGraphicsQualityKey, -1);
if (!PlayerPrefs.HasKey(UserGraphicsQualityKey))
{
PlayerPrefs.SetInt(UserGraphicsQualityKey, -1);
}
}

private void Start()
Expand Down

0 comments on commit 0209b06

Please sign in to comment.