Now that we have the new SQLite wrapper plugins, SQLite script, and other scripts imported, we will set up some services in our Catch
scene in order to test them:
Services
and reset the transform to zero in the Inspector window.Services
object in the Hierarchy window and right-click (press control and click on a Mac) to open the context menu. From the context menu, select Create Empty. This will create a new empty child object attached to the Services
object. Rename this new object Inventory in the Inspector window.Inventory
object in the Hierarchy window. From the Assets/FoodyGo/Scripts/Services
folder, drag the Inventory
script onto the Inventory object.Inventory
object selected, review the Inventory component settings in the Inspector window, as follows:
Inventory Service component's default configuration
.db
extension, which is standard for SQLite databases.CUDLR
object in the Hierarchy window. From the Assets/CUDLR/Scripts
folder, drag the Server script onto the CUDLR
object. If you missed Chapter 2, Mapping the Player's Location, and the section setting up the CUDLR console, please refer back to that chapter.
Console output showing a new database being created
CUDLR
address you used previously to connect to the console. If you are unsure how to do this, refer back to Chapter 2, Mapping the Player's Location, on setting up CUDLR
.CUDLR
output should look very similar to the output you see in the Console window:
CUDLR output for creating a new database on Android devices
CUDLR
output, then check the Plugin settings from preceding section or refer to Chapter 10, Troubleshooting.CURLR
console. Again, you should not see a new database created, since one is already created for the game.3.138.174.174