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)); }
public void SendEvent() { EventRegistry.Get(this._registry).Publish(TfEvent.Get(this._event), this); }