Esempio n. 1
0
 // Sets the death delegate to Die()
 private void SetDie()
 {
     death = Die;
     if (deathShieldPS.isEmitting)
     {
         deathShieldPS.gameObject.SetActive(false);
     }
 }
Esempio n. 2
0
 // Sets the death delegate to Die()
 private void SetDie()
 {
     death = Die;
     if (deathShieldPS.isEmitting)
     {
         deathShieldPS.Stop();
     }
 }
Esempio n. 3
0
 // Turns the death into DeathShield
 public void SetDeathShield()
 {
     if (death != DeathShield)
     {
         death = DeathShield;
         deathShieldPS.gameObject.SetActive(true);
         deathShieldCoroutine = StartCoroutine(DeathShieldCountdown());
     }
 }
Esempio n. 4
0
 // Turns the death into DeathShield
 public void SetDeathShield()
 {
     if (death != DeathShield)
     {
         death = DeathShield;
         deathShieldPS.Play();
         deathShieldCoroutine = StartCoroutine(DeathShieldCountdown());
     }
 }