protected TileBase GetDefaultTile() { MazeTileBlock[] blocks = Array.FindAll(tileBases, el => el.type == MazeTileBlockType.DEFAULT); return(blocks[BusRandom.GenerateRandomNumber(blocks.Length)].tileBase); }
public virtual TileBase GetTileBase(MazeBlock[,] map = null, int w = 0, int h = 0) { return(tileBases[BusRandom.GenerateRandomNumber(tileBases.Length)].tileBase); }