} // end method RunPhase3 IEnumerator RunDiceRoll() { int tempDiceValue = 0; diceRollValue = 0; UIControllerScript.DisplayDiceRoll(true); for (int i = 0; i < 40; i++) { tempDiceValue = Random.Range(1, 7); // should return a random value between 1 and 6 UIControllerScript.DisplayDiceValue(tempDiceValue); yield return(new WaitForSeconds(.1f)); } diceRollValue = tempDiceValue; } // end method RunDiceRoll