Exemplo n.º 1
0
 public void PictureSolved()
 {
     Gameboard.pictureData.Solved = true;
     Gameboard.pictureData.SetCompleted();
     SharedData.Instance.UpdatePicuteData(Gameboard.pictureData);
     this.SolvedPage.SetData(this.save.Steps, this.paintFill, new Func <int, Color>(this.palette.IdToColor));
     AnalyticsManager.CompletePic(Gameboard.pictureData.Id, this.pictureSaveData.TimeSpentRoundFive(), this.paintFill.TexWidth, Gameboard.pictureData.FillType, this.pictureSaveData.hintsUsed);
     if (Gameboard.pictureData.PicClass == PicClass.Daily)
     {
         AnalyticsManager.CompleteDailyPic(Gameboard.pictureData.Id, this.pictureSaveData.TimeSpentRoundFive(), this.paintFill.TexWidth, Gameboard.pictureData.FillType, this.pictureSaveData.hintsUsed);
     }
     if (Gameboard.pictureData.PicClass == PicClass.Daily)
     {
         int num = SharedData.Instance.CalculateDailyCompletePercent();
         if (num != -1)
         {
             AnalyticsManager.UpdateUserDailyProgressProperty(num);
         }
     }
     else
     {
         int num2 = SharedData.Instance.CalculateLibCompletePercent();
         if (num2 != -1)
         {
             AnalyticsManager.UpdateUserLibProgressProperty(num2);
         }
     }
     PlayTimeEventTracker.PictureSolved();
     AnalyticsManager.LevelTrySucceed(Gameboard.pictureData.Id, this.currentGUID);
 }