Skip to main content

Putting it all together - Login Queue - (Unity module)

Last updated on May 22, 2025

Connect the UI to show the Login Queue status

  1. Open the LoginQueueMenu_Starter.cs script file and go to the Start() function. Replace the current implementation with the code below. This new code binds the function in this UI class to the wrapper's delegates.

    private void Start()
    {
    // Get wrapper reference.
    loginQueueWrapper = TutorialModuleManager.Instance.GetModuleClass<LoginQueueWrapper_Starter>();

    // Bind to Login Queue delegates.
    loginQueueWrapper.OnLoginQueued = LoginQueued;
    loginQueueWrapper.OnLoginCanceled = LoginCanceled;

    // Bind button.
    cancelLoginButton.onClick.AddListener(CancelLogin);
    }
  2. Go to the CancelLogin() and call the cancel login function that you have implemented on the wrapper. Replace the current implementation with the code below.

    private void CancelLogin()
    {
    CurrentView = UIState.Canceling;

    loginQueueWrapper.CancelLogin();
    }

Resources