Beispiel #1
0
 public void ResetGame()
 {
     if (liveCount > 0)
     {
         liveCount -= 1;
         balloon[PlayerPrefs.GetInt("TypeOfCrate")].SetActive(true);
         balloon[PlayerPrefs.GetInt("TypeOfCrate")].GetComponent <Animator>().SetTrigger("ResetBalloon");
         runGame             = true;
         theCam.followPlayer = true;
         starsHolder.SetActive(true);
         LevelManager.gameIsLost = false;
         loseScreen.SetActive(false);
     }
     else
     {
         //watch Ad
         theAdsController.PlayRewardedAd();
     }
 }