コード例 #1
0
 public static void Init(FacebookUnity.InitDelegate onInitComplete = null, FacebookUnity.HideUnityDelegate onHideUnity = null, string authResponse = null)
 {
     FacebookUnity.FB.Init(() =>
     {
         onInitComplete?.Invoke();
     }, (isUnityShown) =>
     {
         onHideUnity?.Invoke(isUnityShown);
     },
                           authResponse);
 }
コード例 #2
0
 public static void Init(string appId, string clientToken = null, bool cookie = true, bool logging = true, bool status = true, bool xfbml = false, bool frictionlessRequests = true, string authResponse = null, string javascriptSDKLocale = "en_US", FacebookUnity.HideUnityDelegate onHideUnity = null, FacebookUnity.InitDelegate onInitComplete = null)
 {
     FacebookUnity.FB.Init(appId,
                           clientToken,
                           cookie,
                           logging,
                           status,
                           xfbml,
                           frictionlessRequests,
                           authResponse,
                           javascriptSDKLocale,
                           (isUnityShown) =>
     {
         onHideUnity?.Invoke(isUnityShown);
     },
                           () =>
     {
         onInitComplete?.Invoke();
     });
 }