Exemplo n.º 1
0
 void Death()
 {
     isDead = true;
     pShooting.DisableEffects();
     anim.SetTrigger("die");
     //playerAudio.clip = deathClip;
     //playerAudio.Play();
     pMovement.enabled = false;
     pShooting.enabled = false;
 }
Exemplo n.º 2
0
 void Death()
 {
     //isDead = true;
     pShooting.DisableEffects();
     anim.SetTrigger("die");
     //playerAudio.clip = deathClip;
     //playerAudio.Play();
     pMovement.enabled = false;
     pShooting.enabled = false;
     Destroy(gameObject, 1f);
     //RestartLevel();
 }