private void EndSelection() { if (selection == null) { return; } foreach (GameObject containerObj in cardContainerObjects) { CardContainer container = containerObj.GetComponentInChildren <CardContainer>(); container.EndSelectionMode(); } cardLibraryUI.selectionModePrompt.SetActive(false); selection = null; UpdateCards(); }