void Update()
 {
     if (cardSelector.GetOriginalCard() != null)
     {
         if (cardSelector.GetSelectedCard() != null)
         {
             MakeCardInvisible();
         }
         else if (cardSelector.GetSelectedCard() == null)
         {
             MakeCardVisible();
         }
     }
 }
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         GameObject cardPile = GetClickedCardPile();
         if (cardPile != null && cardSelector.IsCardPlaceableAndInCardSelector() && !cardPile.tag.Contains("Enemy Melee") && !cardPile.tag.Contains("Enemy Range") && !cardPile.tag.Contains("Enemy Siege"))
         {
             card     = cardSelector.GetOriginalCard();
             cardType = card.GetComponent <CQBCard>().GetCardType();
             if (cardType == cardPile.GetComponent <SP_CardPile>().GetCardPileType())
             {
                 //NetworkIdentity networkIdentity = NetworkClient.connection.identity;
                 //PlayerBehavior = networkIdentity.GetComponent<PlayerBehavior>();
                 AddCardToCardPile(cardPile);
                 //PlayerBehavior.PlayCard(card);
                 cardSelector.DeleteSelectedCardInstance();
             }
         }
     }
 }