public void SwapTiles() { for (int t_childrenIndex = 0; t_childrenIndex < m_tilesParent.childCount; t_childrenIndex++) { TileView t_tile = m_tilesParent.GetChild(t_childrenIndex).GetComponent <TileView>(); if (t_tile.TileType == Tiles.Circle) { t_tile.SetCross(t_tile.GetColor()); } else if (t_tile.TileType == Tiles.Cross) { t_tile.SetCircle(t_tile.GetColor()); } } }