Exemple #1
0
 private void CallbackLetterCollected(object _, LetterCollectedArgs args)
 {
     playThroughData.LetterCollected++;
     if (this.playThroughData.LetterCollected == this.levelDetails.NumberOfLetters)
     {
         this.ChangeLevelState(LEVEL_STATE.GAME_WON);
     }
 }
 /// <summary>
 /// Adds the collectibles score value to the total score
 /// </summary>
 /// <param name="col">Sender object</param>
 /// <param name="args">event args</param>
 private void CallbackLetterCollected(object col, LetterCollectedArgs _)
 {
     // when a letter is collected we add one point to the total score counter
     this.levelScore += ((Collectable)col).ScoreValue;
     UpdateScore(this.levelScore);
 }
 private void OnNewLetter(object sender, LetterCollectedArgs letter)
 {
     this.currentLetterCount++;
     this.SetLetterText();
 }