We will now finalize our project:
- Navigate back to the Unity Editor, attach the targetLocation script to the player object, and set the object to be the targetLocation object:
- Attach the DestroyTargetLocation script to our object called LocationBasedGame:
- Now we can click on File | Build:
- Set the project type for Android:
- Make sure the only scene added for building is the Chapter6 scene. If the scenes list is empty, click on Add Current Scene:
- Now, build the project and install it on your Android device to run the program.