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