tl;dr: use references or dispatchers
But the real question here is whether OP even bothered looking at the documentation, examples, tutorials…
Alternatively, post a more detailed question - tell us what is trying to communicate with what and, ideally, attach a screenshot.