示例#1
0
        public void ExecuteCommands <TTarget>(
            IUniBuilderConfiguration configuration,
            IUniBuildCommandsMap commandsMap,
            Action <TTarget> action)
            where  TTarget : IUnityBuildCommand
        {
            LogBuildStep($"ExecuteCommands: \n {configuration.ToString()}");

            var assetResources = commandsMap.
                                 LoadCommands <TTarget>(x => ValidateCommand(configuration, x)).
                                 ToList();

            ExecuteCommands(assetResources, action);
        }