public void RegisterComponentWithOwner(PlayerComponent player)
        {
            owner = player;
            deck  = owner.DeckGO;

            viewText = GetComponent <Text> ( );
            viewText.resizeTextForBestFit = true;

            deck.OwnerDeck.RaiseCardDrawn += HandleOnDrewCard;
        }
Example #2
0
        public void SetOwner(PlayerComponent player)
        {
            owner = player;

            deck     = owner.DeckGO;
            hand     = owner.HandGO;
            cardView = owner.CardViewGO;

            deck.RegisterComponentWithOwner(owner);
            hand.RegisterComponentWithOwner(owner);
            cardView.RegisterComponentWithOwner(owner);
        }