Example #1
0
 void OnDestroy()
 {
     GetListenerTypes().Each(x => EventAggregator.UnRegister(this, x));
 }
Example #2
0
 void Start()
 {
     GetListenerTypes().Each(x => EventAggregator.Register(this, x));
 }