예제 #1
0
    IEnumerator ieRemoveAllMatechesTiles()
    {
        bool Conitnue;

        do
        {
            Conitnue = false;
            while (FindMatedTiles())
            {
                DestroyMatchedTile();
                yield return(new WaitForSeconds(0.5f));

                boardGame.FillGap();

                ExecuteMove();
                yield return(new WaitForSeconds(1f));
            }

            while (!boardGame.FindOppprtunityMatching())
            {
                boardGame.Shuffle();
                yield return(new WaitForSeconds(1f));

                Conitnue = true;

                StartCoroutine(ieAutoShuffle());
                yield return(new WaitForSeconds(1f));
            }
        } while (Conitnue);

        Conitnue = false;
        yield return(null);
    }