ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.53k stars 363 forks source link

How do I determine if a signal is declared? #629

Open pajama opened 5 years ago

pajama commented 5 years ago

I would like to be able to optionally subscribe to a signal, but only if has been declared in my current context/parent contexts. Is that possible?

svermeulen commented 5 years ago

Yeah there wasn't really a way to do this. I've fixed this in https://github.com/svermeulen/Extenject by adding a SignalBus.IsSignalDeclared method