public void Damage(int damage) { health -= damage; flash.FlashEffect(); shake.shakeDuration = 0.5f; //StartCoroutine("TimeDilation"); if (health < 0) { Die(); } }
public void Damage(int damage) { health -= damage; flash.FlashEffect(); shake.shakeDuration = 0.5f; //StartCoroutine("TimeDilation"); if (health < 0) { Die(); } }