예제 #1
0
    private void ShowResult()
    {
        UserDb     userDb    = new UserDb();
        HistoryDb  historyDb = new HistoryDb();
        UserEntity user      = userDb.getActiveUser();

        if (user != null || user._id != "")
        {
            historyDb.addData(new HistoryEntity(user._id, typeSoal, "" + score));
        }
        userDb.close();
        historyDb.close();
        scorePanel.SetActive(true);
        scoreText.text = "" + score;
    }
예제 #2
0
 public void CloseDB()
 {
     userDb.close();
     historyDb.close();
 }