コード例 #1
0
ファイル: EnemyManager.cs プロジェクト: lukz/feel-invaders
    IEnumerator MoveGrid(float targetX)
    {
        for (int y = 0; y <= slots.GetUpperBound(0); y++)
        {
            for (int x = 0; x <= slots.GetUpperBound(1); x++)
            {
                GridSlot slot = slots[y, x];
                slot.ShiftX(targetX);
            }

            yield return(new WaitForSeconds(0.2f));
        }

        yield return(null);
    }