Example #1
0
 public override void stopAndRemoveCurrentRequests()
 {
     base.stopAndRemoveCurrentRequests();
     isLogged          = false;
     loginRequest      = null;
     mainUpdateRequest = null;
 }
Example #2
0
        /**
         * Login remoto con las credenciales de facebook del usuario
         **/
        private void doRemoteLogin()
        {
            //Primero hay que hacer login
            loginRequest = queue.getComponentAttachedToGameObject <GSLoginRequest>("GameSparkFBLogin");
            loginRequest.showDebugInfo       = _mustShowDebugInfo;
            loginRequest.id                  = "login_" + currentFacebookId;
            loginRequest.persistAfterFailed  = true;
            loginRequest.facebookAccessToken = Facebook.Unity.AccessToken.CurrentAccessToken.TokenString;
            loginRequest.initialize(getPath());
            loginRequest.OnComplete += OnRemoteLoginComplete;

            addRequest(loginRequest, true);
        }