Пример #1
0
 private void OnDestroy()
 {
     EventRegistry.Get(this._registry).Unsubscribe(TfEvent.Get(this._event), new EventRegistry.SubscriberCallback(this.OnEvent));
 }
Пример #2
0
 private void Awake()
 {
     EventRegistry.Get(this._registry).Subscribe(TfEvent.Get(this._event), new EventRegistry.SubscriberCallback(this.OnEvent));
 }
Пример #3
0
 public void SendEvent()
 {
     EventRegistry.Get(this._registry).Publish(TfEvent.Get(this._event), this);
 }