I have an Observer and a Subject per usual Observer Pattern.
However I also need to inform the Subject of events happening in the Observer.
What I'm trying to achieve is a decoupled bi-directional decision mechanism that is informed by events.
Both Observer and Subject is connected to larger systems.
Currently I'm using the Subject sending events to Observer and flags the other way.
Should I be setting a counter-observer or is there a better way?
Platform: Unity 3D
Aucun commentaire:
Enregistrer un commentaire