public void OnCreateClicked() { string forename = Input_Forename.text; string surname = Input_Surname.text; if (forename.Length > 1 && surname.Length > 1) { DatabaseController.AddPlayer(forename, surname, 1000); Input_Forename.text = ""; Input_Surname.text = ""; } else { string title = "Invalid input"; string message = "You must enter a forename and a surname"; string okButton = "Ok"; //EditorUtility.DisplayDialog(title, message, okButton); } }