Endless Staircase

Hey people,
I want to make a 3D Video Game in which a Object go the Stairs up.

But my Problem now is that i don’t know how i can make these stairs in the same order endless as in the picture. Also when i’m going up the Stairs behind me have to deleted byself. I hope anybody can help me. I really don’t know how the Script have to look.

make the stairs, or any number of variations of the stairs you want.

put an empty gameobect at the top center where the next stair would spawn.

create a script that generates random prefab of a stair at the empty node location.

make sense?