i want to make a tile-based game and the tiles have certain properties called
TileType. So i inhereted
Tileset with an additional Array which is basically a function from
tile id -> TyleType. A
TileMap script is iterating through the used cells and building a Dictionary which is a function like
tile coordinates -> TileType. This works quite fine and allows me to make changes on the map and the
TileTypes are always correct, but it seems unnecessary to build this
tile coordinates -> TileType Dictionary at run-time.
Is there a way to build a Resource when the project is run/build? If so, the dictionaries only need to be build once and are instantly accessible for every map.
PS: Why is
mother a sugegsted tag for my issue? That's super weird...