} // end method RunPhase1 IEnumerator RunPhase3() { int currentRoadCount; int currentSettCount; currentPhaseDone = false; if (currentSubphase == "BuildRoad") { UIControllerScript.EnableBuildRoadButton(false); currentRoadCount = roadList.Count; HelperScript.enableRoads = true; while (roadList.Count == currentRoadCount) { if (roadList.Count > currentRoadCount) { HelperScript.enableRoads = false; } yield return(new WaitForSeconds(.1f)); } currentSubphase = "None"; } else if (currentSubphase == "BuildSettlement") { UIControllerScript.EnableBuildSettlementButton(false); currentSettCount = settList.Count; HelperScript.enableSettlements = true; while (settList.Count == currentSettCount) { if (settList.Count > currentSettCount) { HelperScript.enableSettlements = false; } yield return(new WaitForSeconds(.1f)); } currentSubphase = "None"; } gameOver = CheckForVictory(); currentPhaseDone = true; } // end method RunPhase3