public void Die() { PlayDeathSound(); screenShaker.StartShake(duration, magnitude * 5); Destroy(gameObject, 1); }
public void Die() { screenShaker.StartShake(duration, magnitude); Destroy(gameObject); }