void InitLevel() { Vector3 playerSpawn; GameObject player = GameObject.Find("Soldier"); Tile.SetCamera(); BasicLevelGenerator generator = new BasicLevelGenerator(); int[,] generatedLevel = generator.GenerateLevel(GameState.LevelIndex, out playerSpawn); setTiles(generatedLevel, playerSpawn, player); AStar.world = generatedLevel; }
void InitLevel() { WALL_COLLIDERS_INITIALIZED = false; Vector3 playerSpawn; GameObject player = GameObject.Find("Soldier"); Tile.SetCamera(); BasicLevelGenerator generator = new BasicLevelGenerator(); int[,] generatedLevel = generator.GenerateLevel(levelIndex, out playerSpawn); setTiles(generatedLevel, playerSpawn, player); AStar.world = generatedLevel; }