void OnTriggerEnter2D(Collider2D collider) { if (collider.gameObject.tag == "jugador") { LogicaJuego.llevarMoneda(gameObject, collider.gameObject); } }