Exemplo n.º 1
0
        public SA_ILoginResult_Proxy(FB_Plugin.ILoginResult result) : base(result)
        {
            //m_result = result;

            if (result.AccessToken != null)
            {
                m_accessToken = new SA_AccessToken(result.AccessToken);
            }
        }
Exemplo n.º 2
0
 // callback called after a successful FB login.
 public static void LoginCallback(Facebook.Unity.ILoginResult result)
 {
     if (result.Error != null)
     {
         if (OnLoginFail != null)
         {
             OnLoginFail("Facebook Error: " + result.Error, MessageDisplayStyle.none);
         }
     }
     else if (!FB.IsLoggedIn)
     {
         if (OnLoginFail != null)
         {
             OnLoginFail("Facebook Error: Login cancelled by Player", MessageDisplayStyle.none);
         }
     }
     else
     {
         LoginWithFacebook(AccessToken.CurrentAccessToken.TokenString);
     }
 }