Esempio n. 1
0
    public void Setup(IDeckModel model)
    {
        this.model      = model;
        slotPrompt.text = model.GetPrompt();
        if (slotPrompt.text == "")
        {
            slotPrompt.gameObject.SetActive(false);
        }
        addBehaviorButton.SetCardCategory(model.GetCardCategory());

        foreach (var assignment in model.GetAssignedCards())
        {
            AddCardFromModel(assignment);
        }
    }