Hello everyone - I’m looking for some ‘Best Practice’ guidance.
I’m developing a board game (Scythe, with my own custom rules and such) and am wondering what the best practice is for using the hierarchy.
For example, in Scythe, a player can have different types of units on a tile - Their Character, Worker Meeples, and Resource Tokens. Should I stash the gameObjects that represent the character, workers, and resouces as a child of the tile they’re presently on?
Alternatively, is it better practice to leave things where they are in the Hierarchy and rely on code to handle everything in terms of location? IE, each resource on a tile would be held in a list of resources, rather than found at runtime with a GetComponentsInChildren call?
Tracking by code seems to be more ‘correct’, but moving objects around in the hierarchy feels like it adheres to the board game paradigm. Which approach would you choose? What do you recommend?