upload accuracy data to leaderboard

This commit is contained in:
Kevin Ngo
2018-12-02 22:20:43 -08:00
parent f6c9eb9d48
commit f171a8e63a

View File

@@ -69,6 +69,7 @@ AFRAME.registerComponent('leaderboard', {
const state = this.el.sceneEl.systems.state.state;
if (!state.isVictory) { return; }
const scoreData = {
accuracy: state.score.accuracy,
challengeId: state.challenge.id,
score: state.score.score,
username: this.username,