Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from Veganimus-Prime/inventoryManager
Browse files Browse the repository at this point in the history
Scene Loader wasn't resetting Time scale.
  • Loading branch information
ASGrincewicz authored May 18, 2021
2 parents 088c21c + 5c29529 commit b7c9b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Assets/Scripts/SceneLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ public void LoadGame(int index)
var load = SceneManager.LoadSceneAsync(index);
if (load.isDone)
SceneManager.UnloadSceneAsync(toUnload);
if(Time.timeScale < 1 )
Time.timeScale = 1;
}
}
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: v0.6.0
bundleVersion: v0.6.1
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit b7c9b6f

Please sign in to comment.