示例#1
0
 public static void CookMainBundleAction()
 {
     AssetCooker.Cook(
         The.Workspace.ActivePlatform,
         new System.Collections.Generic.List <string>()
     {
         CookingRulesBuilder.MainBundleName
     }
         );
 }
示例#2
0
        public static void CookForTarget(Target target, IEnumerable <string> bundles = null)
        {
            var assetCooker = new AssetCooker(target);
            var skipCooking = The.Workspace.ProjectJson.GetValue <bool>("SkipAssetsCooking");

            if (!skipCooking)
            {
                assetCooker.Cook(bundles ?? assetCooker.GetListOfAllBundles());
            }
            else
            {
                Console.WriteLine("-------------  Skip Assets Cooking -------------");
            }
        }