Open.Core.EventBus.Unsubscribe C# (CSharp) Method

Unsubscribe() public method

Removes a handler.
public Unsubscribe ( System.Action handler ) : void
handler System.Action The event handle to unsubscribe.
return void
        public void Unsubscribe(Action handler)
        {
            EventBusHandler item = GetHandler(handler);
            if (item == null) return;
            item.Dispose();
            handlers.Remove(item);
        }