public void AcceptInviteAfterExitLobby(NodeRemoveEvent e, LobbyNode lobby, [JoinAll, Combine] SingleNode <WaitingLobbyExitComponent> dialog, [JoinAll] SingleNode <SelfUserComponent> user)
        {
            AcceptInviteEvent acceptInviteEvent = dialog.Entity.GetComponent <WaitingLobbyExitComponent>().AcceptInviteEvent;

            dialog.Entity.RemoveComponent <WaitingLobbyExitComponent>();
            base.ScheduleEvent(acceptInviteEvent, user);
        }
        public void OnDialogConfirm(DialogConfirmEvent e, SingleNode <InviteToLobbyDialogComponent> dialog, [JoinAll] SingleNode <SelfUserComponent> user)
        {
            AcceptInviteEvent event3 = new AcceptInviteEvent {
                lobbyId  = dialog.component.lobbyId,
                engineId = dialog.component.engineId
            };
            ExitOtherLobbyAndAcceptInviteEvent eventInstance = new ExitOtherLobbyAndAcceptInviteEvent {
                AcceptInviteEvent = event3
            };

            base.NewEvent(eventInstance).Attach(user).Attach(dialog).Schedule();
        }