Skip to content

Commit

Permalink
Added SignalHub example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
yankooliveira authored Feb 12, 2019
1 parent d401236 commit cda55fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ Signals.Get<ScoreSignal>().Dispatch(playerName, playerScore);
```c#
Signals.Get<ScoreSignal>().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<ScoreSignal>().Dispatch(playerName, playerScore);
```


Hit me up on [twitter](https://twitter.com/yankooliveira) for any suggestions or questions.

0 comments on commit cda55fa

Please sign in to comment.