Exemple #1
0
        protected override void DrawGettingStarted()
        {
            DrawBox(0, 0, "Documentation", "The official documentation has a detailed description of all components and code examples.", documentationIcon, () =>
            {
                Application.OpenURL(documentationUrl);
            });

            DrawBox(1, 0, "Video tutorials", "The video tutorials cover all interfaces and a complete set up.", videoTutorialsIcon, () =>
            {
                Application.OpenURL(youtubeUrl);
            });

            DrawBox(2, 0, "Forums", "Check out the " + productName + " forums for some community power.", forumIcon, () =>
            {
                Application.OpenURL(forumUrl);
            });

            DrawBox(3, 0, "Integrations", "Combine the power of assets and enable integrations.", integrationsIcon, () =>
            {
                IntegrationHelperEditor.ShowWindow();
            });

            DrawBox(4, 0, "Rate / Review", "Like " + productName + "? Share the experience :)", reviewIcon, () =>
            {
                Application.OpenURL(reviewProductUrl);
            });

            base.DrawGettingStarted();
        }
        protected override void DrawGettingStarted()
        {
            DrawBox(0, 0, "Documentation", "The official documentation has a detailed description of all components and code examples.", documentationIcon, () =>
            {
                Application.OpenURL(documentationUrl);
            });

            DrawBox(1, 0, "Video tutorials", "The video tutorials cover all interfaces and a complete set up.", videoTutorialsIcon, () =>
            {
                Application.OpenURL(youtubeUrl);
            });

            DrawBox(2, 0, "Discord", "Join the community on Discord for support.", discordIcon, () =>
            {
                Application.OpenURL(discordUrl);
            });

            DrawBox(3, 0, "Integrations", "Combine the power of assets and enable integrations.", integrationsIcon, () =>
            {
                IntegrationHelperEditor.ShowWindow();
            });

            DrawBox(4, 0, "Rate / Review", "Like " + productName + "? Share the experience :)", reviewIcon, () =>
            {
                Application.OpenURL(reviewProductUrl);
            });

            GUILayout.EndArea();

            var tryRucksackRect = new Rect(window.position.width - 409, 200, 399, 252);

            EditorGUIUtility.AddCursorRect(tryRucksackRect, MouseCursor.Link);

            GUI.DrawTexture(tryRucksackRect, tryRucksackImage);
            Event e = Event.current;

            if (e.type == EventType.MouseDown && e.button == 0 && tryRucksackRect.Contains(e.mousePosition))
            {
                Application.OpenURL("https://www.assetstore.unity3d.com/#!/content/114921?aid=1101lGjC");
            }

            GUILayout.BeginArea(new Rect(0, 0, SingleColWidth, window.position.height));

            base.DrawGettingStarted();
        }