Skip to content

Commit

Permalink
Timer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelJasik committed Feb 5, 2023
1 parent f6d3586 commit 4a26420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Prefabs/Enemies/MeleeEnemy.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ MonoBehaviour:
deathSounds:
- {fileID: 8300000, guid: b6df1126650a949809dae86188d0b3f2, type: 3}
- {fileID: 8300000, guid: a0872f2dff73242e4ab4a33bd5a95729, type: 3}
thingToFlash: {fileID: 0}
thingToFlash: {fileID: 7319179142222375571}
petrifySound: {fileID: 8300000, guid: 66d290b87713f4d358290a640578596c, type: 3}
--- !u!114 &2045551526510961245
MonoBehaviour:
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Other/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void Update()

public void SaveTime()
{
if(PlayerPrefs.GetFloat("bestTime" + SceneManager.GetActiveScene().buildIndex) <= time)
if(PlayerPrefs.GetFloat("bestTime" + SceneManager.GetActiveScene().buildIndex) >= time)
PlayerPrefs.SetFloat("bestTime" + SceneManager.GetActiveScene().buildIndex, time);
}

Expand Down

0 comments on commit 4a26420

Please sign in to comment.