public IEnumerator LoadPlayers() { Debug.Log("Loading Players"); WWW connect = new WWW("http://labbola-new.wiradipa.com/api/player-stats?auth_token=" + Token + "&match_id=" + match_id); yield return(connect); if (connect.isDone) { Debug.Log("Players statistics loaded"); players_stats_JSON = connect.text; plgen.GeneratePlayers(players_stats_JSON); } }
private void Start() { tileArray = new MazeTile[BoardSize * BoardSize]; mazeGenerator?.GenerateTiles(tileArray); mazeGenerator?.GenerateExcessPositions(); excessTile.transform.position = extraPositions[0]; TileGenerator.GenerateRandomWalls(excessTile); playerGenerator?.GeneratePlayers(NumberOfPlayers); itemGenerator?.GenerateItems(); playerManager.AssignItemsToCollect(); turnManager.InitializeFirstTurn(); }