public static void AndroidCustomBuild() { CustomBuildSetupEnv customBuildSetup = new CustomBuildAndroidSetupEnv(new BDSAppcoinsGameObject()); CustomBuildWindow customBuildWindow = ScriptableObject.CreateInstance<AndroidCustomBuildWindow>(); CustomBuildUnityExport customBuildUnityExport = GetCustomBuildUnityExport2018(); CustomBuildProjectBuild customBuildProjectBuild = new CustomBuildGradleProjectBuild(); CustomBuildProjectInstall customBuildProjectInstall = new CustomBuildAdbProjectInstall(); CustomBuildProjectRun customBuildProjectRun = new CustomBuildAdbProjectRun(); CustomBuildErrorTitles eT = new CustomBuildAndroidErrorTitles(); CustomBuild c = new CustomBuild(customBuildSetup, customBuildWindow, customBuildUnityExport, customBuildProjectBuild, customBuildProjectInstall, customBuildProjectRun, eT ); c.RunProcess(); }
public CustomBuild(CustomBuildSetupEnv setupEnv, CustomBuildWindow window, CustomBuildUnityExport unityExport, CustomBuildProjectBuild projectBuild, CustomBuildProjectInstall projectInstall, CustomBuildProjectRun projectRun, CustomBuildErrorTitles eT ) { scenesSelector = new SelectScenes(); customBuildSetup = setupEnv; customBuildWindow = window; customBuildUnityExport = unityExport; customBuildProjectBuild = projectBuild; customBuildProjectInstall = projectInstall; customBuildProjectRun = projectRun; errorTitles = eT; buildStagesToRun = new BuildStageEvent(); }