예제 #1
0
    public void updateDatabase()
    {
        DatabaseScript database    = new DatabaseScript();
        int            prevHighest = DatabaseScript.playerScore;

        if (score > prevHighest)
        {
            database.updateUserScoreToDatabase(score);
        }
    }
예제 #2
0
    void updateDatabase()
    {
        DatabaseScript database = new DatabaseScript();

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