From cda55fa9bfc1233b227d7b4738f36e953eb51ee9 Mon Sep 17 00:00:00 2001 From: Yanko Oliveira Date: Tue, 12 Feb 2019 18:08:15 +0000 Subject: [PATCH] Added SignalHub example to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8ae968b..6f5a63d 100644 --- a/README.md +++ b/README.md @@ -28,5 +28,11 @@ Signals.Get().Dispatch(playerName, playerScore); ```c# Signals.Get().RemoveListener(OnScore); ``` +5) You also have your local Signal Hub that is specific to a given object instead of using the global one. The syntax is exactly the same. +```c# +SignalHub playerSignals = new SignalHub(); +playerSignals.Get().Dispatch(playerName, playerScore); +``` + Hit me up on [twitter](https://twitter.com/yankooliveira) for any suggestions or questions.