Beispiel #1
0
    public void SetUpCard(Sprite back, Sprite front, GameEnums.SuitEnum suitEnum, int value, Image View)
    {
        //Debug.Log("Deck Count: " + RuntimeDeck.Count());
        this.back   = back;
        this.front  = front;
        View.sprite = back;

        this.suitEnum = suitEnum;
        // this.card = card;
        cardEnum = (GameEnums.CardEnum)value;
    }
Beispiel #2
0
    public void SetUpCard(Sprite back, Sprite front, GameEnums.SuitEnum suitEnum, int value)
    {
        //Debug.Log("Deck Count: " + RuntimeDeck.Count());
        this.back   = back;
        this.front  = front;
        View.sprite = back;

        this.suitEnum = suitEnum;

        cardEnum = (GameEnums.CardEnum)value;

        cardInternal.SetUpCard(back, front, suitEnum, value, View);
        gameObject.name = suitEnum.ToString() + cardEnum.ToString();
    }