Example #1
0
    public static void SetLessonBestScore(QuestionType Category, int lessonNumber, int value)
    {
        P2DSecurety.SecureLocalSave(lessonOfLevelKey + Category.ToString() + lessonNumber.ToString(), value);

        if (onScoreChangeEvent != null)
        {
            onScoreChangeEvent(Category);
        }
    }
Example #2
0
    public static void SetLastOpenLesson(QuestionType category, int value)
    {
        P2DSecurety.SecureLocalSave(lessonOfLevelKey + category.ToString(), value);

        if (onScoreChangeEvent != null)
        {
            onScoreChangeEvent(category);
        }
    }
Example #3
0
    public static void SetExamBestScore(string examName, int value)
    {
        P2DSecurety.SecureLocalSave(lessonOfLevelKey + examName, value);

        if (onScoreChangeEvent != null)
        {
            onScoreChangeEvent((QuestionType)lastCategoryIndex);
        }

        Instance.CheckAchivmentExcelentExam();
    }
Example #4
0
 private void SetReady2Collect()
 {
     P2DSecurety.SecureLocalSave(achivmentType.ToString() + Ready2CollectKey + requestedAmount, true);
 }
Example #5
0
 private void SetCollected()
 {
     P2DSecurety.SecureLocalSave(achivmentType.ToString() + requestedAmount, true);
     ChangeButton();
 }
Example #6
0
 public static void SetMaxCorrectInRow(int value)
 {
     P2DSecurety.SecureLocalSave(correctInRowKey, value);
     Instance.CheckAchivmentCorrectInRow();
 }
Example #7
0
 public static void SetDiamondNumber(int value)
 {
     P2DSecurety.SecureLocalSave(diamondKey, value);
 }
Example #8
0
    private void SetNextDate()
    {
        DateTime newDate = DateTime.Now.AddHours((int)prizeTime);

        P2DSecurety.SecureLocalSave(timerKey + prizeTime, Convert.ToString(newDate));
    }