Esempio n. 1
0
    public void InitializeDeckSlot(Card c)
    {
        card = c;

        Transform[] childs = Util.getFirstChildren(gameObject.transform);
        item         = childs[0];
        selectedMask = childs[1];

        DeckData deckData = DeckData.GetInstance();

        slotSelected = deckData.CheckAlreadySelectedCard(card);
        selectedMask.gameObject.SetActive(slotSelected);
    }