Exemple #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (vida <= 0)
     {
         motivoAlMorir = motivoDeMuerte.SinVida;
         Destroy(this.gameObject);
     }
 }
Exemple #2
0
 public void elJugadorEstaMuriendo(GameObject objeto, motivoDeMuerte motivo)
 {
     if (vidaJugador != null)
     {
         vidaJugador.estaMueriendo -= elJugadorEstaMuriendo;
     }
     jugadorMurio();
     if (motivo != vida.motivoDeMuerte.Indefinida)
     {
     }
 }