public void updateDatabase() { DatabaseScript database = new DatabaseScript(); int prevHighest = DatabaseScript.playerScore; if (score > prevHighest) { database.updateUserScoreToDatabase(score); } }
void updateDatabase() { DatabaseScript database = new DatabaseScript(); if (DatabaseScript.userID != null && DatabaseScript.userID != "") { int prevHighest = DatabaseScript.playerScore; if (score > prevHighest) { database.updateUserScoreToDatabase(score); } } }