Putting it all together - Login Queue - (Unity module)
Last updated on May 22, 2025
Connect the UI to show the Login Queue status
Open the
LoginQueueMenu_Starter.cs
script file and go to theStart()
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);
}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
- GitHub link to the files in the Unity Byte Wars repository: