public void OnPressOffCard() { if (_cardLogic != null) { if (isCardPressedOn) { PressedCard.Invoke(false, this.gameObject); isCardPressedOn = false; } } }
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(); } } }