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