예제 #1
0
    private static void OnLoggedIn(string errorMessage)
    {
        if (errorMessage != null)
        {
            if (errorMessage.StartsWith("Cancelled"))
            {
                DebugUtils.Log("Closing package manager because login cancelled");
                ((AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload")).Close();
            }
            else
            {
                DebugUtils.LogError(string.Concat("Error logging in: ", errorMessage));
            }
            return;
        }
        Console.WriteLine("Asset Store Upload Tool logged in. V5.0.0");
        AssetStoreManager window = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");

        if (AssetStoreManager.isOpen)
        {
            window.Focus();
        }
        else
        {
            AssetStoreManager.isOpen = true;
            window.Init();
            window.Show();
        }
    }
예제 #2
0
    private static void OnLoggedIn(string errorMessage)
    {
        if (errorMessage != null)
        {
            if (!errorMessage.StartsWith("Cancelled"))
            {
                DebugUtils.LogError("Error logging in: " + errorMessage);
            }
            else
            {
                DebugUtils.Log("Closing package manager because login cancelled");
                AssetStoreManager assetStoreManager = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");
                assetStoreManager.Close();
            }
            return;
        }
        Console.WriteLine("Asset Store Upload Tool logged in. V4.0.7");
        AssetStoreManager assetStoreManager2 = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");

        assetStoreManager2.Init();
        assetStoreManager2.Show();
    }