Created
May 23, 2019 13:50
-
-
Save Ronserruya/3640acf752ba9b7bd6df0e0486e165dd to your computer and use it in GitHub Desktop.
unity callbacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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