/** * <summary>Initialises the window.</summary> */ public static void Init(SpeechManager _speechManager, string[,] _csvData, int _forLanguage = 0) { if (_speechManager == null) { return; } ImportWizardWindow window = (ImportWizardWindow)EditorWindow.GetWindow(typeof(ImportWizardWindow)); UnityVersionHandler.SetWindowTitle(window, "Game text importer"); window.position = new Rect(300, 200, 350, 300); window._Init(_speechManager, _csvData, _forLanguage); }
/** * <summary>Initialises the window.</summary> */ public static void Init(SpeechManager _speechManager, string[,] _csvData, int _forLanguage = -1) { if (_speechManager == null) { return; } ImportWizardWindow window = EditorWindow.GetWindowWithRect <ImportWizardWindow> (new Rect(0, 0, 350, 500), true, "Game text importer", true); window.titleContent.text = "Game text importer"; window.position = new Rect(300, 200, 350, 500); window._Init(_speechManager, _csvData, _forLanguage); }