Пример #1
0
    private void DeselectViewer(CardViewer viewer)
    {
        selectedCards.Remove(viewer.CurrentlyDisplayed);
        if (selectedCards.Count < minCards)
        {
            confirmButton.gameObject.SetActive(false);
        }

        GameObject cardVis = viewer.GetComponentInChildren <StatChangePropogator>().gameObject;

        Destroy(cardVis.GetComponent <Outline>());
        Destroy(cardVis.GetComponent <Image>());
    }
Пример #2
0
    private void SelectViewer(CardViewer viewer)
    {
        selectedCards.Add(viewer.CurrentlyDisplayed);
        if (selectedCards.Count == maxCards)
        {
            ConfirmPicks();
        }
        else if (selectedCards.Count >= minCards)
        {
            confirmButton.gameObject.SetActive(true);
        }
        GameObject cardVis = viewer.GetComponentInChildren <StatChangePropogator>().gameObject;

        cardVis.gameObject.AddComponent <Image>();
        Outline outline = cardVis.gameObject.AddComponent <Outline>();

        outline.effectDistance = outlineSize;
        outline.effectColor    = outlineColor;
    }