Exemplo n.º 1
0
    public void Center()
    {
        List <int> grave     = hands.GetGrave();
        GameObject cardCopy  = Instantiate(cardPrefab);
        CardModel  cardModel = cardCopy.GetComponent <CardModel>();

        cardModel.cardIndex = grave[grave.Count - 1];
        cardModel.ToggleFace(true);

        cardCopy.transform.position = new Vector3(0, 0, 0);
        sources.Add(cardCopy);
    }
Exemplo n.º 2
0
    private void Display()
    {
        initSources();
        //grave.Sort();
        grave = hands.GetGrave();
        foreach (int card in grave)
        {
            GameObject cardCopy  = (GameObject)Instantiate(cardPrefab);
            CardModel  cardModel = cardCopy.GetComponent <CardModel>();

            sources.Add(cardCopy);

            int num  = card % 13;
            int suit = (card - num) / 13;
            cardCopy.transform.position = holder[num] + new Vector3(suit * co, 0f);
            cardModel.cardIndex         = card;
            cardModel.ToggleFace(true);
        }
    }
Exemplo n.º 3
0
 public List <int> opensource()
 {
     get();
     return(hands.GetGrave());
 }