Exemple #1
0
 public void morrer()
 {
     status.vivo = false;
     animacao.morrer();
     movimento.morrer();
     this.enabled   = false;
     agente.enabled = false;
     Destroy(gameObject, 4);
     Instantiate(kitMedico, transform.position, Quaternion.identity);
 }
Exemple #2
0
 public void morrer()
 {
     status.vivo = false;
     animacao.morrer();
     StartCoroutine(movimento.morrer());
     this.enabled = false;
     ControlaAudio.instancia.PlayOneShot(somMorte);
     this.spawnKitMedico(porcentagemKitMedico);
     controlaInterface.AtualizarQuantidadeZumbisMortos();
     gerador.diminuirQuantidadeZumbiTotal();
     Destroy(gameObject, 7);
 }