/// <summary> /// Frees the current screen. /// </summary> /// <param name="manipulator">The manipulator.</param> private void FreeCurrentScreen(SceneManipulator manipulator) { foreach (CardPairLogic actCardPair in m_cardPairsOnScreen) { manipulator.Remove(actCardPair); manipulator.RemoveRange(actCardPair.Cards); } for (int loopX = 0; loopX < m_cardMapOnScreen.GetLength(0); loopX++) { for (int loopY = 0; loopY < m_cardMapOnScreen.GetLength(1); loopY++) { m_cardMapOnScreen[loopX, loopY] = null; } } }