Hello,
I have a problem with my “prefab management” (I would call it so). I have started to code a “Map Designer” for my game. In this designer it is possible to place quadratic tiles (2D) which are different (grass, way, water, etc. - in different versions to). You can toggle the selected kind of tile by pressing T.
The problem now ist, that I have about 25 different tiles. My first way was that I have declared a public GameObject for each tile. So I have 25 public GameObjects in my script and i have to connect all this prefabs (each kind of tile is a prefab, tile an Box Collider, etc.)…I think there would be a better way to realise?
Do you have a clue for me to do this better?
Thank you!