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); }