예제 #1
0
 public void onFacebookConnectClicked()
 {
     if (!PlayerView.Binder.MenuSystem.InTransition)
     {
         FacebookConnectPopupContent.InputParameters parameters2 = new FacebookConnectPopupContent.InputParameters();
         parameters2.context            = "gifting";
         parameters2.CompletionCallback = delegate(bool success) {
             if (success)
             {
                 this.FbRoot.SetActive(false);
                 this.reconstructContent();
             }
         };
         FacebookConnectPopupContent.InputParameters parameter = parameters2;
         PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.TechPopupMenu, MenuContentType.FacebookConnectPopupContent, parameter, 0f, false, true);
     }
 }
예제 #2
0
 public void onFacebookConnectButtonClicked()
 {
     if (!Service.Binder.FacebookAdapter.RequiresUserConnect())
     {
         Service.Binder.FacebookAdapter.Logout("options");
         Service.Binder.TaskManager.StartTask(this.refreshDelayed(0.3f), null);
     }
     else if (!PlayerView.Binder.MenuSystem.InTransition)
     {
         FacebookConnectPopupContent.InputParameters parameters2 = new FacebookConnectPopupContent.InputParameters();
         parameters2.context            = "options";
         parameters2.CompletionCallback = delegate(bool success) {
             if (success)
             {
                 GameLogic.Binder.LeaderboardSystem.initialize();
                 base.refresh();
             }
         };
         FacebookConnectPopupContent.InputParameters parameter = parameters2;
         PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.TechPopupMenu, MenuContentType.FacebookConnectPopupContent, parameter, 0f, false, true);
     }
 }