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