public void AddHistory() { UserEntity user = userDb.getActiveUser(); historyDb.addData(new HistoryEntity(user._id, "angka", "100")); changeCounter++; }
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; }