private void OnDestroy()
 {
     EventRegistry.Get(this._registry).Unsubscribe(TfEvent.Get(this._event), new EventRegistry.SubscriberCallback(this.OnEvent));
 }
 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);
 }