Ejemplo n.º 1
0
        /// <summary>
        /// Called when the WebGL target platform is already selected or when the user switches to it through the Publisher
        /// </summary>
        public void OnWebGLBuildTargetSet()
        {
            bool buildSettingsHaveNoActiveScenes = EditorBuildSettingsScene.GetActiveSceneList(EditorBuildSettings.scenes).Length == 0;

            if (buildSettingsHaveNoActiveScenes)
            {
                BuildPlayerWindow.ShowBuildPlayerWindow();
                return;
            }

            (bool buildSucceeded, string buildPath) = ShareBuildProcessor.OpenBuildGameDialog(BuildTarget.WebGL);
            if (!buildSucceeded)
            {
                return;
            }

            if (autoPublishSuccessfulBuilds)
            {
                OnShareClicked(buildPath);
            }

            if (currentTab != TAB_UPLOAD)
            {
                return;
            }
            SetupUploadTab();
        }
        public void OnWebGLBuildTargetSet()
        {
            bool buildSettingsHaveNoActiveScenes = EditorBuildSettingsScene.GetActiveSceneList(EditorBuildSettings.scenes).Length == 0;

            if (buildSettingsHaveNoActiveScenes)
            {
                BuildPlayerWindow.ShowBuildPlayerWindow();
                return;
            }

            if (!ShareBuildProcessor.OpenBuildGameDialog(BuildTarget.WebGL))
            {
                return;
            }
            if (currentTab != TAB_UPLOAD)
            {
                return;
            }
            SetupUploadTab();
        }