Created
October 26, 2011 17:48
-
-
Save surma/1317129 to your computer and use it in GitHub Desktop.
This file contains 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
#if UNITY_EDITOR | |
private static void _init(string AppId) {} | |
private static void _authorize(int permissions) {getInstance().loggedOut();} | |
private static void _logout() {getInstance().loggedOut();} | |
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");} | |
private static void _deleteSession() {} | |
#elif UNITY_IPHONE | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _init(string AppId); | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _authorize(int permissions); | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _logout(); | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _graphRequest(string methodname, string[] param, string method); | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _deleteSession(); | |
#else | |
private static void _init(string AppId) {} | |
private static void _authorize(int permissions) {getInstance().loggedOut();} | |
private static void _logout() {getInstance().loggedOut();} | |
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");} | |
private static void _deleteSession() {} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment