public IEnumerator fillAndUpdate(int cl) { if (cl > currentGameStats.maxChainLevel) { currentGameStats.maxChainLevel = cl; } isUpdating = true; yield return(Fill()); //yield return new WaitForSeconds(0.5f); yield return(updateBoard(++cl)); if (currentGameStats.currentDropsPerRound == Level.currentLevelInfo.DropsPerRound) { currentGameStats.currentDropsPerRound = 0; StartCoroutine(addRow(cl)); } if (UIDisplayComponent) { UIDisplayComponent.SetDropCount(Level.currentLevelInfo.DropsPerRound - currentGameStats.currentDropsPerRound - 1); } checkGameOver(); isUpdating = false; }