void SetMastery() { currMastery = 0; foreach (SequenceTerm x in allTerms) { currMastery += x.mastery; } print("total mast: " + totalMastery + "currmast: " + currMastery + "currindex: " + currIndex); AppManager.s_instance.currentAssignments[assignIndex].mastery = (int)((currMastery + accumulatedMastery) / totalMastery * 100); masteryMeter.value = (float)(currMastery + accumulatedMastery) / totalMastery; timer.Reset(25f); }
void SetMastery() { currMastery = 0; foreach (SequenceTerm x in allTerms) { currMastery += x.mastery; } print("CURR MASTERY AT SET " + currMastery); AppManager.s_instance.currentAssignments[assignIndex].mastery = (int)((currMastery) / totalMastery * 100); masteryMeter.value = (float)(currMastery) / totalMastery; timer.Reset(25f); }
void InitiateTerm() { currentQuestion.text = "Turn the boat to " + randomListPoints[currIndex].pointOfSailAnswer.Replace("|", " "); timer.Reset(25f); }