public void PlayCard(CardFunction card) { if (currentTargetEnemy == null) { //Pop up Services.visualEffectManager.PlayErrorPopUp("Please select a target first!"); } else if (card.CanPlay()) { Services.resourceManager.ConsumeDrawBar(card.GetDrawCost()); Services.resourceManager.ConsumeAttackBar(card.GetAttackCost()); card.Played(); PlayerHand.Remove(card); Services.eventManager.Fire(new PlayerPlayCardEvent(card)); UpdateCardCanPlay(); } }