public override void Dispose() { GalaxyInstance.ListenerRegistrar().Unregister(GalaxyTypeAwareListenerLobbyEntered.GetListenerType(), this); base.Dispose(); }
public GalaxyLobbyEnteredListener(Action <GalaxyID, LobbyEnterResult> callback) { this.callback = callback; GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerLobbyEntered.GetListenerType(), this); }