Summary
Throughout this chapter, we learned how to add a collider that serves as a trigger for a user, allowing them to interact with the houses that we dynamically load into a scene. This trigger contacts the Firestore database and queries whether a building is occupied by another player or can be acquired by the current player.
We learned a new class, GUI, allowing us to display texts on screen in a very simple way, which is ideal to display messages that incite action. We programmed a script able to query and write in the database the new owner of the building. Conversely, we learned how to use the ChainSafe SDK to create NFTs from our class.
In the next chapter, we will introduce our world to the Photon SDK, an impressive framework that will turn our metaverse into a multiplayer world. With Photon, we will be able to coordinate over a network all our player’s movements; walking, jumping, turning, and running will be transmitted over the internet and accurately reproduced...