In terms of game design, I feel that an endless game should always at a certain point be too hard for the player to keep on winning (same as in games like vampire survivor). That makes it so there is an end to the game and a reason to restart (so the player can try to go further).
I saw it was your first attempt at unity and honestly not bad : )