Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     if (!isInDeck)
     {
         cloneToPlace = Instantiate(this, transform.position, Quaternion.identity, GameObject.Find("Deck Building").transform);
         cloneToPlace.Init(thisCard);
     }
     else
     {
     }
 }