Пример #1
0
 public void CheckDeath()
 {
     if (health <= 0)
     {
         health          = 0;
         isAlive         = false;
         healthText.text = "Dead";
         victoryScreen.SetActive(true);
         PlayerPrefs.SetFloat(bossName, 1);
         player.CheckPlayerLevel(expReward);
         PlayerGoldController.AddGold(goldReward);
     }
 }
 public void AdReward()
 {
     PlayerGoldController.AddGold(5);
     SceneManager.LoadScene("ShopScene");
 }