There may come a time in a game when a player makes a mistake and would like to restart the level in the game they're currently playing. If you prepared your project ahead of time like we have, it's actually quite easy to get this functionality placed into your game. With that being said, let's implement that functionality now! We will perform the following steps:
- Select the Panel object and from there, create an empty child and drag it in the hierarchy to be the top child from the list. To that empty game object, rename it to Top Row and add a Horizontal Layout Group component to it.
- Next, drag and drop Resume object to it to make it a child and then duplicate it (Ctrl + D) to create a copy.
- As you can see, we now have two buttons ...