public void HandleClick(bool toggleState) { //Display the card in the CardReader CardReader.instance.DisplayCard(correspondingCard.gameObject); //If the toggle was clicked on, add the corresponding card to the return list in the card picker window. if (toggleState) { cardPickerWindow.AddCard(correspondingCard); } //Else, if the toggle was clicked off, remove the corresponding card from the return list. else { cardPickerWindow.RemoveCard(correspondingCard); } }