Ejemplo n.º 1
0
    public IEnumerator _Death()
    {
        this.power      = "";
        slowTime.activo = false;
        doublejump      = false;
        anim.SetBool("isDead", true);
        sonidoMuerteNatural.Play();
        yield return(new WaitForSeconds(3.9F));

        anim.SetBool("isDead", false);
        this.transform.position = respawn.position;
        this.vida = 100;
        vida1.restartHeatlth();
    }