public static void Init(int prefabID = -1)
        {
            // Get existing open window or if none, make a new one:
            window         = (NewUnitAbilityEditorWindow)EditorWindow.GetWindow(typeof(NewUnitAbilityEditorWindow), false, "Unit Ability Editor");
            window.minSize = new Vector2(420, 300);

            LoadDB();

            window.InitLabel();

            //if(prefabID>=0) window.selectID=TDEditor.GetTowerIndex(prefabID)-1;

            window.SetupCallback();
        }
Beispiel #2
0
 public static void OpenUnitAbilityEditor()
 {
     //UnitAbilityEditorWindow.Init();
     NewUnitAbilityEditorWindow.Init();
 }