void Start() { if (toggle) { StartCoroutine(WindowFlipper()); } else { displayedCombo = WinningCombos.getWinningCombo(number); UpdatePanels(); } }
IEnumerator WindowFlipper() { //Infinite Loop while (true) { //Flip between winning combos for (int i = 0; i < 32; i++) { yield return(new WaitForSeconds(1)); displayedCombo = WinningCombos.getWinningCombo(i); UpdatePanels(); } } }