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