Look about tilemap.
You can use a tilemap to display the ground (like a tileset of the ground everywhere) and then you are digging by erasing each cube of the diggable ground when they are overlapping with the shovel, for example.
What to look for at least:
Tilemap.
Object overlapping with another.
Overlapping based on collision on origin from the sprite editor.