void loginClick() { string name = nameField.GetComponentInChildren <InputField>().text; string password = passwordField.GetComponentInChildren <InputField> ().text; Debug.Log(name); Debug.Log(password); if (namePasswordMatch(name, password, mockDB)) { appProxy.LoadScene("Overzicht"); } else { passwordErrorText.text = "Onjuist wachtwoord of gebruikersnaam"; } }