I've got this bit of code, pretty simple (Unity);
RemovedMatchStatus = -2; //will set to -1 or Time.time using callbacks
string[] keys = new string[] {_currentMatch.Key}; //_currentMatch is a BigDB object
myPlayerIOClient.BigDB.DeleteKeys(
"PlayerObjects",
keys,
delegate() {
RemovedMatchStatus = Time.time;
},
delegate(PlayerIOError error) {
if(Debug.isDebugBuild) Debug.Log("Error deleting a Match: " + error.ToString());
RemovedMatchStatus = -1; //failed
}
);
Trouble is 'RemovedMatchStatus' seems to stick at -2 so I assume the Callbacks don't fire and I'm not sure why.
Any ideas why?