Ejemplo n.º 1
0
 public void Destruir()
 {
     if (cristal)
     {
         Debug.Log("cristal activado");
         move.Doble_salto();
         Destroy(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Ejemplo n.º 2
0
 public void Destruir()
 {
     if (cristal)
     {
         //Debug.Log("cristal activado");
         move.Doble_salto();
         anim.SetBool("morir", true);
         vivo = false;
     }
     else
     {
         Destroy(gameObject);
     }
 }