void Start()
 {
     chickenLauncher = GameObject.FindWithTag("ChickenLauncher");
     if(chickenLauncher!= null){
         ls = chickenLauncher.GetComponent<LauncherScript>();
     }
     diffic = PlayerPrefs.GetInt ("Dificultad");
     if(diffic < 1)
     {
         diffic = 1;
     }
     Max_life = 9 + diffic;
     CurrentLife = Max_life;
     isAlive = true;
     bsa = GetComponentInChildren<BossStarsAnimator>();
 }
Example #2
0
 void Start()
 {
     chickenLauncher = GameObject.FindWithTag("ChickenLauncher");
     if (chickenLauncher != null)
     {
         ls = chickenLauncher.GetComponent <LauncherScript>();
     }
     diffic = PlayerPrefs.GetInt("Dificultad");
     if (diffic < 1)
     {
         diffic = 1;
     }
     Max_life    = 9 + diffic;
     CurrentLife = Max_life;
     isAlive     = true;
     bsa         = GetComponentInChildren <BossStarsAnimator>();
 }