Esempio n. 1
0
 void Death()
 {
     isDead = true;
     pShooting.DisableEffects();
     anim.SetTrigger("die");
     //playerAudio.clip = deathClip;
     //playerAudio.Play();
     pMovement.enabled = false;
     pShooting.enabled = false;
 }
Esempio 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();
 }