Пример #1
0
 //Función para remover vida
 public void RemoveLife()
 {
     for (int i = 0; i < livesImage.Length; i++)
     {
         if (livesImage[i].enabled)
         {
             lives.LivesManager(-1);
             livesImage[i].GetComponent <Animator>().enabled = true;
             //livesImage [i].enabled = false;
             batteryManager.WaitForLife(batteryManager.timeToWait);
             break;
         }
     }
 }