im making a mobile game in unity, its not multiplayer but i need to store and read data from databases, when i readed about playerio BIGdb it sonded fairly simple to do, but im getting only errors now..
Can someone please help me with a small tutorial to create and read bigdb`s? im following the documentation but its not working for me, im always getting errors like object reference needed etc.. this was one of the scripts i was using:
- Code: Select all
//Make new object and set some properties
DatabaseObject obj = new DatabaseObject();
obj.Set("username", "Adam");
obj.Set("location", "London");
obj.Set("age", 20);
//Create object in table Users with ConnectUserId as key
client.BigDB.CreateObject("Users", ConnectUserId, obj,
delegate (DatabaseObject result){
//Change a property and store the update when created
result.Set("location", "Paris");
result.Save(null);
}
);