Skip to content

Commit

Permalink
Make the game always load in background
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Apr 24, 2016
1 parent e2c6d92 commit 95c333b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moduleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ internal void Awake()
{
totalTime.Start();

// Allow loading the background in the laoding screen
Application.runInBackground = true;

// Ensure that only one copy of the service is run per scene change.
if (loadedInScene || !ElectionAndCheck())
{
Expand Down Expand Up @@ -130,6 +133,9 @@ internal void Update()
{
totalTime.Stop();
log("Total loading Time = " + ((float)totalTime.ElapsedMilliseconds / 1000).ToString("F3") + "s");

Application.runInBackground = GameSettings.SIMULATE_IN_BACKGROUND;

}

if (reloading)
Expand Down

0 comments on commit 95c333b

Please sign in to comment.