// =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods // =========================================================== void OnEnable() { configuration = target as MadLevelConfiguration; items = new List <LevelItem>(); list = new MadGUI.ScrollableList <LevelItem>(items); list.height = 0; // expand list.spaceAfter = 150; list.label = "Level List"; list.selectionEnabled = true; list.selectionCallback = (item) => ItemSelected(item); list.acceptDropTypes.Add(typeof(UnityEngine.Object)); list.dropCallback += (index, obj) => { if (CheckAssetIsScene(obj)) { executionQueue.Add(() => { var item = AddLevel(); item.level.sceneObject = obj; item.level.type = MadLevel.Type.Other; item.level.name = ""; item.level.name = UniqueLevelName(obj.name); configuration.SetDirty(); }); } }; }
// =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods // =========================================================== void OnEnable() { configuration = target as MadLevelConfiguration; items = new List <LevelItem>(); list = new MadGUI.ScrollableList <LevelItem>(items); list.label = "Level List"; list.selectionEnabled = true; list.selectionCallback = (item) => ItemSelected(item); }