public override void OnEnable()
    {
        sceneListHeight = EditorPrefs.GetFloat(SceneListHeight, 200f);
        levelListHeight = EditorPrefs.GetFloat(LevelListHeight, 200f);
        levelRenderer   = new SMLevelRenderer();
        sceneRenderer   = new SMSceneRenderer(Target);

        sceneListData.DragSource = new SMSceneListDragSource();
        sceneListData.DropTarget = new SMSceneListDropTarget(DropLevelInScenes);
        levelListData.DragSource = new SMLevelListDragSource();
        levelListData.DropTarget = new SMLevelListDropTarget(DropScenesInLevels);

        base.OnEnable();
    }
예제 #2
0
    public override void OnEnable()
    {
        if (null == m_GUISkin)
        {
            m_GUISkin = LoadRes.ResourcesSkin;
        }
        sceneListHeight = EditorPrefs.GetFloat(SceneListHeight, 200f);
        levelListHeight = EditorPrefs.GetFloat(LevelListHeight, 200f);
        levelRenderer   = new SMLevelRenderer();
        sceneRenderer   = new SMSceneRenderer(Target);

        sceneListData.DragSource = new SMSceneListDragSource();
        sceneListData.DropTarget = new SMSceneListDropTarget(DropLevelInScenes);
        levelListData.DragSource = new SMLevelListDragSource();
        levelListData.DropTarget = new SMLevelListDropTarget(DropScenesInLevels);

        base.OnEnable();
    }