コード例 #1
0
    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);
    }
コード例 #2
0
 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);
 }
コード例 #3
0
 void InitiateTerm()
 {
     currentQuestion.text = "Turn the boat to " + randomListPoints[currIndex].pointOfSailAnswer.Replace("|", " ");
     timer.Reset(25f);
 }