void OnCollisionEnter2D(Collision2D collision) { //Check for a match with the specific tag on any GameObject that collides with your GameObject if (collision.gameObject.CompareTag("Player")) { Instantiate(explosion, transform.position, Quaternion.identity); collision.gameObject.GetComponent <JugadorMover>().BajarVida(nivelDanno); Destroy(gameObject); controlador.EfectoDanno(); // controlador.InstaciarAsteroide(UnityEngine.Random.Range(1, 4)); } }