Esempio n. 1
0
 public static void Login(string loginReason, AssetStoreLoginWindow.LoginCallback callback)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     AssetStoreLoginWindow.\u003CLogin\u003Ec__AnonStorey59 loginCAnonStorey59 = new AssetStoreLoginWindow.\u003CLogin\u003Ec__AnonStorey59();
     // ISSUE: reference to a compiler-generated field
     loginCAnonStorey59.callback = callback;
     // ISSUE: reference to a compiler-generated field
     loginCAnonStorey59.loginReason = loginReason;
     if (AssetStoreClient.HasActiveSessionID)
     {
         AssetStoreClient.Logout();
     }
     if (!AssetStoreClient.RememberSession || !AssetStoreClient.HasSavedSessionID)
     {
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginCAnonStorey59.loginReason, loginCAnonStorey59.callback);
     }
     else
     {
         // ISSUE: reference to a compiler-generated method
         AssetStoreClient.LoginWithRememberedSession(new AssetStoreClient.DoneLoginCallback(loginCAnonStorey59.\u003C\u003Em__99));
     }
 }
 public void OnDisable()
 {
   if (this.m_LoginCallback != null)
     this.m_LoginCallback(this.m_LoginRemoteMessage);
   this.m_LoginCallback = (AssetStoreLoginWindow.LoginCallback) null;
   this.m_Password = (string) null;
 }
Esempio n. 3
0
 public static void Login(string loginReason, AssetStoreLoginWindow.LoginCallback callback)
 {
     if (AssetStoreClient.HasActiveSessionID)
     {
         AssetStoreClient.Logout();
     }
     if (!AssetStoreClient.RememberSession || !AssetStoreClient.HasSavedSessionID)
     {
         AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginReason, callback);
     }
     else
     {
         AssetStoreClient.LoginWithRememberedSession(delegate(string errorMessage)
         {
             if (string.IsNullOrEmpty(errorMessage))
             {
                 callback(errorMessage);
             }
             else
             {
                 AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginReason, callback);
             }
         });
     }
 }
		public void OnDisable()
		{
			if (this.m_LoginCallback != null)
			{
				this.m_LoginCallback(this.m_LoginRemoteMessage);
			}
			this.m_LoginCallback = null;
			this.m_Password = null;
		}
Esempio n. 5
0
 public void OnDisable()
 {
     if (this.m_LoginCallback != null)
     {
         this.m_LoginCallback(this.m_LoginRemoteMessage);
     }
     this.m_LoginCallback = (AssetStoreLoginWindow.LoginCallback)null;
     this.m_Password      = (string)null;
 }
Esempio n. 6
0
 public void OnDisable()
 {
     if (this.m_LoginCallback != null)
     {
         this.m_LoginCallback(this.m_LoginRemoteMessage);
     }
     this.m_LoginCallback = null;
     this.m_Password      = null;
 }
Esempio n. 7
0
        public static void ShowAssetStoreLoginWindow(string loginReason, AssetStoreLoginWindow.LoginCallback callback)
        {
            AssetStoreLoginWindow windowWithRect = EditorWindow.GetWindowWithRect <AssetStoreLoginWindow>(new Rect(100f, 100f, 360f, 140f), true, "Login to Asset Store");

            windowWithRect.position = new Rect(100f, 100f, windowWithRect.position.width, windowWithRect.position.height);
            windowWithRect.m_Parent.window.m_DontSaveToLayout = true;
            windowWithRect.m_Password           = string.Empty;
            windowWithRect.m_LoginCallback      = callback;
            windowWithRect.m_LoginReason        = loginReason;
            windowWithRect.m_LoginRemoteMessage = (string)null;
            Analytics.Track("/AssetStore/Login");
        }