Gday,
I have a health system and a collision system.
The health system which doesn't nothing at the moment but listen for 'modifyHealth' events.
My question is, does it make more sense for the health system to listen for collision events and handle them, or for my collision handling to send out 'modifyHealth' events where appropriate?
I am thinking maybe the former because the latter implies that the collision knows about the health system...
What do people think?
I have a health system and a collision system.
The health system which doesn't nothing at the moment but listen for 'modifyHealth' events.
My question is, does it make more sense for the health system to listen for collision events and handle them, or for my collision handling to send out 'modifyHealth' events where appropriate?
I am thinking maybe the former because the latter implies that the collision knows about the health system...
What do people think?