Esempio n. 1
0
 public static void Gen()
 {
     if (GenModel.CopyDll(DllName) && Define.CompileLua)
     {
         GenModel.CompileLua(DllName, DllDir, OutDirName, ReferencedLuaAssemblies, true);
     }
 }
Esempio n. 2
0
 public static void Gen()
 {
     if (GenModel.CopyDll(DllName) && Define.CompileLua)
     {
         GenModel.CompileLua(DllName, DllDir, OutDirName, ReferencedLuaAssemblies, false);
         Debug.Log("生成lua完毕");
     }
 }
Esempio n. 3
0
        public static void Geanerate()
        {
            Log.Debug("=========开始转换C#为lua,请耐心等待=========");

            FileHelper.CleanDirectory("Assets/Bundles/Lua/Hotfix");
            FileHelper.CleanDirectory("Assets/Bundles/Lua/HotfixView");
            FileHelper.CleanDirectory("Assets/Bundles/Lua/Model");
            FileHelper.CleanDirectory("Assets/Bundles/Lua/ModelView");
            FileHelper.CleanDirectory("Assets/Res/Code");
            GenModel.Gen();
            GenHotfixView.Gen();
            GenModelView.Gen();
            GenHotfix.Gen();
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
            Log.Debug("===============转换完成===============");
        }