public void SubmitLeaderboardScore() { successStarted = true; UpdateFields(); if (localName == "") { notificationBox.text = "ENTER A NAME!"; ClearNotificationBox(); // Debug.Log("ENTER A NAME!"); return; } if (localPassword == "") { notificationBox.text = "ENTER A PASSWORD!"; ClearNotificationBox(); return; } for (int i = 0; i < badWords.Length; i++) { if (localName.Contains(badWords[i])) { Debug.Log("inapproriate username"); notificationBox.text = "REJECTED:\nTASTELESS\nUSERNAME!"; ClearNotificationBox(); return; } } HSController.updateOnlineHighscoreData(localName, localScore, localPassword); HSController.startGetCurrentID(); // Debug.Log("LOCALUNIQUEID" + localPassword); // Debug.Log("RETRIEVED ID: " + HSController.retrievedID); setTheScore = true; startLoading = true; }