示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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;
            }
        }
示例#4
0
        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();
 }