예제 #1
0
    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>();
    }
예제 #2
0
 public CardsAggregationModel FilterBy(CardLabel label)
 {
     return(Create(CardsStats.Where(c => c.HasLabel(label)).ToArray()));
 }