Пример #1
0
    public void activeSlot(slot s, SlotController sc, int idCard)
    {
        panelChosseCard.SetActive(false);
        s.slotCard = Cards[idCard];

        iconBuild.sprite       = s.slotCard.spriteCard;
        buyDescriptionTxt.text = "Você liberou <color=#FFFF00>" + s.slotCard.cardName + "</color>";

        panelBuy.SetActive(true);

        getGold(s.slotPrice * -1);    //tirar o dinheiro
        s.isPurchased         = true; // comprou
        s.slotCard.isLiberate = true; //liberou
        s.startSlotScriptable();      //inicializou

        sc.SlotStart();

        //2 Q
        if (isQuest == true && idQuest == 2)
        {
            updateQuest();
        }

        saveSlot(s);
    }