private void AttemptSignIn() { var credentials = new SignInCredentials { Username = _usernameInputField.text, Password = _passwordInputField.text }; var result = _user.AttemptSignIn(credentials); if (result == SignInError.None) { ShowCanvas = false; _messager.Publish(new MainMenuSelectedMessage()); } else { ShowCanvas = false; _messager.Publish(new ShowPopUpDialogueMessage { AllowCancel = false, MainDialogue = result.ToString().ToFormalString(), OnConfirmed = () => ShowCanvas = true }); } }