예제 #1
0
    //빈 공간이 있다면, 새로 타일을 생성하여 빈 공간으로 이동. //
    private IEnumerator FillTiles(List <PuzzleController> puzzleList)
    {
        for (int i = 0, max = puzzleList.Count; i < max; i++)
        {
            if (tileList.Count >= Define.readyBlockCount)
            {
                break;
            }

            PuzzleController tile = puzzleList[i];
            tile.Move(tileList.Count);
            tileList.Add(tile);

            yield return(new WaitForSeconds(Define.readyTileMoveTime));
        }
    }