Summary
Throughout this chapter, we learned how to create our first NPC, a nice, animated character that will help us in our Metaverse to travel to other worlds. Our NPC has an area of influence, which we programmed to detect when the player enters or leaves. We also learned about a new Unity UI feature, Scroll View, which we linked with a query to the Firestore database to dump the Worlds collection into a scrolling view. Finally, the user can select any of these worlds to travel to another scene.
In the next chapter, we will learn how to program scripts that allow a user to get a house in ownership, link the house to the player’s owner, and finally, persist the data in the Firestore database.