Adding a target
In our shooting gallery, we will need to have something to shoot. In this case, we will need to create a target, which the player can shoot:
- Create an empty game object by going to the Hierarchy tab and selecting Create | Empty Game object. Rename that object Target and change its Position to
-4so it'll be on top of other objects.
- Add the wooden stick and the
duck_outline_brownsprites to the Target object, giving the duck a Position of
0to place it on top of the stick.
- We want the player to be able to touch the duck so next we will need to add a Polygon Collider 2D component to the