示例#1
0
 private void OnFriendsInvited(List <string> recipientIDs)
 {
     if (FacebookManager.OnInviteCallback != null)
     {
         FacebookManager.OnInviteCallback(recipientIDs);
     }
     Service.Get <GameIdleController>().Enabled = true;
 }
示例#2
0
 public void LoginSilent()
 {
     Service.Get <GameIdleController>().Enabled = false;
     if (FacebookManager.IsLoggedIn)
     {
         FacebookManager.OnFacebookLogin();
     }
     Service.Get <GameIdleController>().Enabled = true;
 }
示例#3
0
 private static void OnPost()
 {
     Service.Get <GameIdleController>().Enabled = true;
     if (FacebookManager.OnPostCallback != null)
     {
         FacebookManager.OnPostCallback();
         FacebookManager.OnPostCallback = null;
     }
 }
示例#4
0
 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();
         }
     }
 }
示例#5
0
 public unsafe static long $Invoke17(long instance, long *args)
 {
     FacebookManager.OnPost();
     return(-1L);
 }
示例#6
0
 public unsafe static long $Invoke14(long instance, long *args)
 {
     FacebookManager.OnFacebookLogin();
     return(-1L);
 }
示例#7
0
 public unsafe static long $Invoke7(long instance, long *args)
 {
     FacebookManager.GetSelfData((FacebookGetSelfDataCompleteDelegate)GCHandledObjects.GCHandleToObject(*args));
     return(-1L);
 }
示例#8
0
 private void Start()
 {
     FacebookManager._instance = this;
 }