private void CardClick(string card) { CardListPanel.SetActive(false); SelectedCard.SetActive(true); SendProfileBtn.SetActive(true); SelectedCard.GetComponent <RawImage>().texture = imageTextures[cardList.IndexOf(card)]; cardToBeSentId = card; }
private void CardClick(int cardIndex) { CardListPanel.SetActive(false); SelectedCard.SetActive(true); checkInt = 1; Debug.Log("Card Clicked"); SelectedCard.GetComponent <RawImage>().texture = imageTextures[cardIndex]; }