Beispiel #1
0
        /**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(SpeechManager _speechManager, int forLanguage = 0)
        {
            if (_speechManager == null)
            {
                return;
            }

            ExportWizardWindow window = (ExportWizardWindow)EditorWindow.GetWindow(typeof(ExportWizardWindow));

            UnityVersionHandler.SetWindowTitle(window, "Game text exporter");
            window.position = new Rect(300, 200, 350, 500);
            window._Init(_speechManager, forLanguage);
        }
        /**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(SpeechManager _speechManager, string[] _sceneNames, int forLanguage = 0)
        {
            if (_speechManager == null)
            {
                return;
            }

            ExportWizardWindow window = EditorWindow.GetWindowWithRect <ExportWizardWindow> (new Rect(0, 0, 350, 500), true, "Game text exporter", true);

            window.titleContent.text = "Game text exporter";
            window.position          = new Rect(300, 200, 350, 500);
            window._Init(_speechManager, _sceneNames, forLanguage);
        }