public static void Init(int prefabID = -1) { window = (PerkEditorWindow)EditorWindow.GetWindow(typeof(PerkEditorWindow), false, "PerkEditor"); window.minSize = new Vector2(420, 300); TDE.Init(); InitLabel(); //if(prefabID>=0) window.selectID=PerkDB.GetPrefabIDIndex(prefabID); }
public static void Init(int prefabID = -1) { window = (AbilityEditorWindow)EditorWindow.GetWindow(typeof(AbilityEditorWindow), false, "AbilityEditor"); window.minSize = new Vector2(420, 300); TDE.Init(); InitLabel(); if (prefabID >= 0) { window.selectID = AbilityDB.GetPrefabIndex(prefabID); } }
public static void Init(SpawnManager smInstance = null) { // Get existing open window or if none, make a new one: window = (SpawnEditorWindow)EditorWindow.GetWindow(typeof(SpawnEditorWindow), false, "SpawnEditor"); window.minSize = new Vector2(500, 300); TDE.Init(); InitLabel(); if (smInstance != null) { instance = smInstance; } }
public static void Init(int prefabID = -1) { window = (UnitTowerEditorWindow)EditorWindow.GetWindow(typeof(UnitTowerEditorWindow), false, "TowerEditor"); window.minSize = new Vector2(420, 300); TDE.Init(); InitLabel(); if (prefabID >= 0) { window.selectID = TowerDB.GetPrefabIndex(prefabID); } window.SelectItem(window.selectID); }
public virtual void Awake() { TDE.Init(); }