private void Awake() { cardStats = gameObject.GetComponent <CardsStats>(); player = GameObject.FindGameObjectWithTag("Player"); canvas = GameObject.Find("Main Canvas"); playerSide = GameObject.Find("PlayerSide"); moveCardToHandScript = player.GetComponent <MoveCardToHand>(); playerManagerScript = player.GetComponent <PlayerManager>(); }
public CardsAggregationModel FilterBy(CardLabel label) { return(Create(CardsStats.Where(c => c.HasLabel(label)).ToArray())); }