Esempio n. 1
0
 protected new void ReceiveHit(int number)
 {
     hits -= number;
     if (hits > 0)
     {
         AudioManager.GetInstance().PlayEffect(Sfx.BOSS_HIT);
         StartCoroutine("SetInvulnerable", invulnerableTime);
     }
     else
     {
         phasesDone++;
         if (phases == phasesDone)
         {
             Die();
         }
         else
         {
             hits = GameplayValues.GetBossHits();
             phase++;
         }
     }
     SetCounter();
 }
Esempio n. 2
0
 protected void ReceiveHit(int number)
 {
     hits -= number;
     if (hits > 0)
     {
         AudioManager.GetInstance().PlayEffect(Sfx.BOSS_HIT);
         StartCoroutine("SetInvulnerable", invulnerableTime);
     }
     else
     {
         phasesDone++;
         if (phases == phasesDone)
         {
             Die();
         }
         else
         {
             // Me cago en Dios, Juanma. Ni Senior ni pollas, eres un MIERDAS.
             // Extremely hacky...
             hits = GameplayValues.GetBossHits();
             phase++;
         }
     }
 }