Beispiel #1
0
 private static void OnInviteFriends(IAppRequestResult result)
 {
     if (Service.GameIdleController != null)
     {
         Service.GameIdleController.Enabled = true;
     }
     if (FacebookManager.OnInviteCallback != null)
     {
         FacebookManager.OnInviteCallback(result);
         FacebookManager.OnInviteCallback = null;
     }
 }
Beispiel #2
0
 private static void OnPost(IShareResult result)
 {
     if (Service.GameIdleController != null)
     {
         Service.GameIdleController.Enabled = true;
     }
     if (FacebookManager.OnPostCallback != null)
     {
         FacebookManager.OnPostCallback(result);
         FacebookManager.OnPostCallback = null;
     }
 }
Beispiel #3
0
 private static void OnFacebookLogin(ILoginResult result)
 {
     if (FB.IsLoggedIn || !Service.GameIdleController.Enabled)
     {
         if (Service.GameIdleController != null)
         {
             Service.GameIdleController.Enabled = true;
         }
         if (FB.IsLoggedIn)
         {
             if (FacebookManager.OnFacebookLoggedIn != null)
             {
                 FacebookManager.OnFacebookLoggedIn(result);
             }
         }
         else if (FacebookManager.OnFacebookLogInFailed != null)
         {
             FacebookManager.OnFacebookLogInFailed(result != null);
         }
     }
 }