Esempio n. 1
0
 void Start()
 {
     if (toggle)
     {
         StartCoroutine(WindowFlipper());
     }
     else
     {
         displayedCombo = WinningCombos.getWinningCombo(number);
         UpdatePanels();
     }
 }
Esempio n. 2
0
    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();
            }
        }
    }