public void gotHit() { isDead = true; tocarSom.PlayOneShot(audioHit); playerAnimator.SetBool("Dead", isDead); manager.GameOver(); }
private void OnCollisionEnter2D(Collision2D collision) { manager.GameOver(); }