Exemple #1
0
 void Muerte()
 {
     estaMuerto        = true;
     playerMov.enabled = false;
     playersAlive.DecreseCount();
     Destroy(gameObject);
 }
Exemple #2
0
    void Muerte()
    {
        animator.SetBool("IsDead", true);

        estaMuerto = true;
        //StartCoroutine("Respawn");
        playerMov.enabled = false;
        playersAlive.DecreseCount();
        Destroy(gameObject, 6.0f);
    }