Skip to content

Instantly share code, notes, and snippets.

@Ronserruya
Created May 23, 2019 13:50
Show Gist options
  • Select an option

  • Save Ronserruya/3640acf752ba9b7bd6df0e0486e165dd to your computer and use it in GitHub Desktop.

Select an option

Save Ronserruya/3640acf752ba9b7bd6df0e0486e165dd to your computer and use it in GitHub Desktop.
unity callbacks
Restore(
onSuccess: (KinAccount restoredAccount) =>
{
Debug.Log("Success");
},
onFailure: (KinException ex) =>
{
Debug.LogError(ex);
},
onCancel: () =>
{
Debug.Log("Cancel");
});
Restore(
onComplete: (KinException ex, BackupRestoreResult result, KinAccount restoredAccount) =>
{
if (ex != null)
{
if (result == BackupRestoreResult.Success)
{
Debug.Log("Success");
}
else
{
Debug.Log("Cancel");
}
}
else
{
Debug.Log(ex);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment