Skip to content

Commit

Permalink
Fix the webgl build
Browse files Browse the repository at this point in the history
  • Loading branch information
StollD committed Aug 12, 2018
1 parent ab1a285 commit 02942c2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Unity Project/IC Viewer/Assets/Scripts/EditorManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using SFB;
Expand Down Expand Up @@ -34,11 +35,13 @@ void Start()
/*thirdColor*/); //0.502f, 0.502f, 0.502f, 1

// Autoload the online version of the database
StartCoroutine(ImportDatabase());
}

private IEnumerator ImportDatabase()
{
WWW www = new WWW(DatabaseUrl);
while (!www.isDone)
{
// Wait until the download finished
}
yield return www;
LoadBodies(www.text);
Logger.Info("Imported default star database");
}
Expand Down

0 comments on commit 02942c2

Please sign in to comment.