Commit 8a191cbf by Philipp Adolf

Load random level instead of first

parent df91e3b8
......@@ -18,6 +18,8 @@ public class GameMaster : MonoBehaviour {
public void loadLevel(int numberOfPlayers, int level = -1)
{
if (level < 0)
level = Random.Range(0, levelLoader.getLevelCount());
levelLoader.loadLevel(level);
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