Esempio n. 1
0
 public void OnPressOffCard()
 {
     if (_cardLogic != null)
     {
         if (isCardPressedOn)
         {
             PressedCard.Invoke(false, this.gameObject);
             isCardPressedOn = false;
         }
     }
 }
Esempio n. 2
0
    public void OnPressCard()
    {
        if (_cardLogic != null)
        {
            //Debug.Log(this._card.CardInfo.CardName);
            // tell player hand to handle graphics related things that arent directly related to this particular card

            if (!isCardPressedOn)
            {
                PressedCard.Invoke(true, this.gameObject);
                _card.CardHighlightImage.color = new Color(1, 0, 0, 1);
                isCardPressedOn = true;
                //_animator.SetTrigger("Pressed");
            }
            else
            {
                OnPressOffCard();
            }
        }
    }