Пример #1
0
 public void UpdateScore(int maxCoins, int coins, int hearts, int numberOfStars)
 {
     coinsText.text  = coins + "/" + maxCoins;
     heartsText.text = hearts + "/3";
     starsPanel.IconEnable(4);
     starsPanel.IconDisable(4 - numberOfStars);
 }
Пример #2
0
 private void LoseHealth(int healthLose)
 {
     lives -= healthLose;
     if (lives < 0)
     {
         lives = 0;
     }
     LevelScoreManager.Instance.UpdateHeartsAmount(lives);
     healthPanel.IconDisable(healthLose);
 }