Ejemplo n.º 1
0
 private void OnDestroy()
 {
     EventRegistry.Get(this._registry).Unsubscribe(TfEvent.Get(this._event), new EventRegistry.SubscriberCallback(this.OnEvent));
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     EventRegistry.Get(this._registry).Subscribe(TfEvent.Get(this._event), new EventRegistry.SubscriberCallback(this.OnEvent));
 }
Ejemplo n.º 3
0
 public void SendEvent()
 {
     EventRegistry.Get(this._registry).Publish(TfEvent.Get(this._event), this);
 }