// Use this for initialization void Start() { img = Resources.LoadAll <Sprite>("Graphics/Tiles/Fase" + rContr.andar); grid = new int[size, size]; real = new int[size * 10, size *10]; for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { grid[x, y] = 0; } } Corridors(size / 2, size / 2, (nCorridors / 2) + 1); Corridors(size / 2, size / 2, nCorridors / 2); CreateRooms(); Realize(); Conections(); WallColliders(); Roomificate(); GenerateAll(); Roomie(); rContr.CreateRooms(); rContr.Positionate(); rContr.ChooseTypes(); Doorate(); miniMap.LoadAll(real); }