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