Hello folks!
I have encountered weird behaviour of game objects. I am making point’n’click game.
I use sprites (those red boxes) to help me set collision boxes for objects. Every clickable object is encapsulated in its own collection.
bbox.go is used as a prefab for all bounding boxes. So it has different properties in each collection.
It doesn’t seem to work in game though. Editor shows fine box, but in game properties are taken from default for tree.collection.
By the way, feel free to suggest any improvement for the structure to be more ‘defold’ way. I am still new to this stuff.
Here you can find code repo: github