Bullet and Tile collision

Hi, I have a bullet and I want it to disappear after colliding with the tile. I tried everything, read every forum post. I tried all the settings. I can set the bullet bounces off the wall so the collision is but I can’t detect it.

I’ve been dealing with this for 5 hours, please help.
the missile is to disappear after colliding with the mountains

Bullet

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BulletGame : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
    }
}

====================================================================================
Player

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class  PlayerGame : MonoBehaviour
{
    //predkosc gracz
    public float SpeedPlayer = 5;
    //predkosc pocisku
    public float BulletSpeed = 10;
    //pobieranie obiektu pocisku
    public GameObject Bullet;
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
        //pobieranie obiektu gracza itd
        var player = GetComponent<Rigidbody2D>();
        //Ruch postaci
        if (Input.GetKey(KeyCode.W))
        {
            player.transform.Translate(Vector2.up * SpeedPlayer * Time.deltaTime);
        }
        if (Input.GetKey(KeyCode.S))
        {
            player.transform.Translate(Vector2.down * SpeedPlayer * Time.deltaTime);
        }
        if (Input.GetKey(KeyCode.A))
        {
            player.transform.Translate(Vector2.left * SpeedPlayer * Time.deltaTime);
        }
        if (Input.GetKey(KeyCode.D))
        {
            player.transform.Translate(Vector2.right * SpeedPlayer * Time.deltaTime);
        }
        //strzelanie
        if(Input.GetKey(KeyCode.Mouse0))
        {
            //pobieranie pozycji kursora
            Vector3 worldMousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
            Vector2 direction = (Vector2)((worldMousePos - transform.position));
            direction.Normalize();
            // tworzenie pocisku
            GameObject bulletobject = (GameObject)Instantiate(Bullet, transform.position + (Vector3)(direction * 0.5f), Quaternion.identity);
            //kierunek pocisku
            bulletobject.GetComponent<Rigidbody2D>().velocity = direction * BulletSpeed;
        }
    }
}

I seriously doubt that you read all the forum posts if you don’t even have an OnCollisionEnter2D method in your bullet script.

What you want to do is remove Start() and Update() from your Bullet script. Then you want to declare the function OnCollisionEnter2D, intellisense will help getting the parameters right.

OnCollisionEnter2D(Collision2D collision)

{

Destroy(gameObject);

}