Exemplo n.º 1
0
 static public void InitEditorFrame()
 {
     //BD生命周期启动
     BDApplication.Init();
     BDFrameEditorConfigHelper.Init();
     //编辑器下加载初始化
     BResources.Load(AssetLoadPath.Editor);
 }
        /// <summary>
        /// 初始化框架编辑器
        /// </summary>
        static public void InitFrameEditor()
        {
            //BD生命周期启动
            BDApplication.Init();
            BDFrameEditorConfigHelper.Init();
            //编辑器下加载初始化
            BResources.Load(AssetLoadPath.Editor);
            //初始化DLL
            var gAssembly = Assembly.LoadFile(BDApplication.Library + "/ScriptAssemblies/Assembly-CSharp.dll");
            var eAssemlby = Assembly.LoadFile(BDApplication.Library + "/ScriptAssemblies/Assembly-CSharp-Editor.dll");

            RegisterMainProjectAssembly(gAssembly, eAssemlby);
        }
Exemplo n.º 3
0
 static public void InitBDEditorLife()
 {
     //Editor的管理器初始化
     RegisterEditorMgrInstance();
     //BD生命周期启动
     BDFrameEditorBehaviorHelper.Init();
     BDFrameEditorConfigHelper.Init();
     BDApplication.Init();
     //编辑器下加载初始化
     BResources.Load(AssetLoadPath.Editor);
     //调试器启动
     DebuggerServerProcessManager.Inst.Start();
     //TODO
     //这一行还是不能加到框架层,应该还是:哪里用 哪里主动load,
     //然后用完了close(SqliteLoder.Close())。
     //不然sql文件editor环境下一直被占用,很多麻烦事
     // SqliteLoder.Load(Application.streamingAssetsPath);
 }