Exemplo n.º 1
0
        /**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(InventoryManager _inventoryManager, string[,] _csvData)
        {
            if (_inventoryManager == null)
            {
                return;
            }

            InvItemImportWizardWindow window = EditorWindow.GetWindowWithRect <InvItemImportWizardWindow> (new Rect(0, 0, 350, 500), true, "Inventory item importer", true);

            window.titleContent.text = "Inventory importer";
            window.position          = new Rect(300, 200, 350, 500);
            window._Init(_inventoryManager, _csvData);
        }
        /**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(InventoryManager _inventoryManager, string[,] _csvData)
        {
            if (_inventoryManager == null)
            {
                return;
            }

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

            UnityVersionHandler.SetWindowTitle(window, "Inventory importer");
            window.position = new Rect(300, 200, 350, 300);
            window._Init(_inventoryManager, _csvData);
        }