Commit 8a191cbf by Philipp Adolf

Load random level instead of first

parent df91e3b8
...@@ -18,6 +18,8 @@ public class GameMaster : MonoBehaviour { ...@@ -18,6 +18,8 @@ public class GameMaster : MonoBehaviour {
public void loadLevel(int numberOfPlayers, int level = -1) public void loadLevel(int numberOfPlayers, int level = -1)
{ {
if (level < 0)
level = Random.Range(0, levelLoader.getLevelCount());
levelLoader.loadLevel(level); levelLoader.loadLevel(level);
deleteAllPlayers(); deleteAllPlayers();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment