Exemple #1
0
 /// <summary>
 /// This method will be called at the end of mouse drag
 /// </summary>
 /// <param name="eventData"></param>
 public void OnEndDrag(PointerEventData eventData)
 {
     IsCardGetForDrag = false;
     shineParticle.SetActive(false);
     glowParticle.SetActive(false);
     if (eventData.hovered.Exists(a => a.name == "DropCardPanel"))
     {
         cardsInHand.DropCard(cardController);
         Destroy(this);
     }
     else
     {
         cardsInHand.RepositionCards();
         canvasGroup.blocksRaycasts = true;
     }
 }