Example #1
0
 public void AddScore(int brickHPMultiplier)
 {
     if (options)
     {
         int addedScore = options.baseForScore * brickHPMultiplier * Mathf.Max(options.LivesCurrent, 1);
         //print("In add score. Adding: bfs: " + options.baseForScore + " bHPm: " + brickHPMultiplier + "LC: " + options.LivesCurrent + " total: " + addedScore);
         options.AddScore(addedScore);
         UpdateScoreText();
     }
     else if (!options)
     {
         print("GameSession/AddScore: no Options found");
     }
 }