Exemple #1
0
    public void AddHistory()
    {
        UserEntity user = userDb.getActiveUser();

        historyDb.addData(new HistoryEntity(user._id, "angka", "100"));
        changeCounter++;
    }
Exemple #2
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;
    }