public static void Init(int prefabID = -1) { // Get existing open window or if none, make a new one: window = (NewPerkEditorWindow)EditorWindow.GetWindow(typeof(NewPerkEditorWindow), false, "Perk Editor"); window.minSize = new Vector2(420, 300); LoadDB(); InitLabel(); //if(prefabID>=0) window.selectID=TDEditor.GetTowerIndex(prefabID)-1; window.SetupCallback(); }
public static void OpenPerkEditor() { //PerkEditorWindow.Init(); NewPerkEditorWindow.Init(); }