IEnumerator PlayGameRoutine() { if (m_levelGoal.levelCounter == LevelCounter.Timer) { m_levelGoal.StartCountdown(); } while (!m_isGameOver) { m_isGameOver = m_levelGoal.IsGameOver(); yield return(null); } if (m_levelGoal.levelCounter == LevelCounter.Timer) { m_levelGoal.StopCountdown(); } yield return(StartCoroutine(WaitForBoardRoutine(0.5f))); m_isWinner = m_levelGoal.IsWinner(); }