Categories
Game Creation Mastering Development

How to Instantiate an array of Prefabs THROUGH ONE in C# (Unity)

I need to instantiate an array of 2 elements that is floors of black and white color throught one so it looks like a chess board. It is for my game that have 2D Dungeon Generation. public enum TileType { Wall, Floor, } public GameObject[] floorTiles; public GameObject[] wallTiles; public GameObject[] outerWallTiles; private TileType[][] tiles; […]