public static void BuildGame(bool andRun) { KillProcessesAndStopEditor(); BuildConfiguration buildConfig = GetBuildConfig(); BuildResult buildResult = buildConfig.Build(); buildResult.LogResult(); if (andRun && buildResult.Succeeded) { RunResult runResult = buildConfig.Run(); runResult.LogResult(); } }