/// <summary> /// Card text can be hard to read, this will show it in an easier to read panel /// </summary> public void ShowText(InventoryCard cardToShow) { if (textPanel != null) { textPanel.SetActive(true); displayCard.Init(cardToShow.thisCard); } }
public void OnBeginDrag(PointerEventData eventData) { if (!isInDeck) { cloneToPlace = Instantiate(this, transform.position, Quaternion.identity, GameObject.Find("Deck Building").transform); cloneToPlace.Init(thisCard); } else { } }