Crash on Event Call.


The editor crashes every time I try to call this method:

IDictionary<string, string> saveGame = new Dictionary<string, string>();
saveGame.Add ("coins_collected", "2000");

sessionClient.StoragePut ("SAVE_GAME_1", saveGame, () => {
  Debug.Log ("Successfully saved game.");
}, (status, reason) => {
  Debug.LogErrorFormat ("The request failed with '{0}' and '{1}'.", status, reason);

Any ideas why?

I assume by “this method” you mean sessionClient.StoragePut? What error are you getting in the console? If its a NullReferenceException, are you creating sessionClient somewhere else?