コード例 #1
0
 /// <inheritdoc>
 ///     <cref>IEventBus.Post</cref>
 /// </inheritdoc>
 public void Post <T>(T @event) where T : IEvent
 {
     EventBusDispatcher <T> .Dispatch(this, @event);
 }
コード例 #2
0
 /// <inheritdoc>
 ///     <cref>IEventBus.Unsubscribe</cref>
 /// </inheritdoc>
 public void Unsubscribe <T>(Action <T> listener) where T : IEvent
 {
     EventBusDispatcher <T> .Unsubscribe(this, listener);
 }