private void OnFriendsInvited(List <string> recipientIDs) { if (FacebookManager.OnInviteCallback != null) { FacebookManager.OnInviteCallback(recipientIDs); } Service.Get <GameIdleController>().Enabled = true; }
public void LoginSilent() { Service.Get <GameIdleController>().Enabled = false; if (FacebookManager.IsLoggedIn) { FacebookManager.OnFacebookLogin(); } Service.Get <GameIdleController>().Enabled = true; }
private static void OnPost() { Service.Get <GameIdleController>().Enabled = true; if (FacebookManager.OnPostCallback != null) { FacebookManager.OnPostCallback(); FacebookManager.OnPostCallback = null; } }
public static void OnFacebookLogin() { if (FacebookManager.FBController.IsLoggedIn || !Service.Get <GameIdleController>().Enabled) { Service.Get <GameIdleController>().Enabled = true; if (FacebookManager.FBController.IsLoggedIn) { if (FacebookManager.OnFacebookLoggedIn != null) { FacebookManager.OnFacebookLoggedIn(); return; } } else if (FacebookManager.OnFacebookLogInFailed != null) { FacebookManager.OnFacebookLogInFailed(); } } }
public unsafe static long $Invoke17(long instance, long *args) { FacebookManager.OnPost(); return(-1L); }
public unsafe static long $Invoke14(long instance, long *args) { FacebookManager.OnFacebookLogin(); return(-1L); }
public unsafe static long $Invoke7(long instance, long *args) { FacebookManager.GetSelfData((FacebookGetSelfDataCompleteDelegate)GCHandledObjects.GCHandleToObject(*args)); return(-1L); }
private void Start() { FacebookManager._instance = this; }