private void Display()
        {
            bool valid = true;

            if (deck.m_Warrior == null)
            {
                warriorDisplay.gameObject.SetActive(false);
                valid = false;
            }
            else
            {
                warriorDisplay.gameObject.SetActive(true);
                warriorDisplay.Display(deck.m_Warrior);
            }

            for (int i = 0; i < cardDisplays.Count; i++)
            {
                if (deck.m_CardList[i] == null)
                {
                    cardDisplays[i].gameObject.SetActive(false);
                    valid = false;
                }
                else
                {
                    cardDisplays[i].gameObject.SetActive(true);
                    cardDisplays[i].Display(deck.m_CardList[i]);
                }
            }

            Warning.SetActive(!valid);
        }
Exemple #2
0
 public void Display(UnitData data)
 {
     if (data == null)
     {
         cardDisplay.gameObject.SetActive(false);
     }
     else
     {
         cardDisplay.Display(data);
         cardDisplay.gameObject.SetActive(true);
     }
 }
Exemple #3
0
    void Display()
    {
        //change center card
        m_SelectionDisplay.Display(m_SelectedSpirit);

        //get all possible base spirits
        List <UnitData> baseSpirits = m_AllSpirits.GetOriginSpirits(m_SelectedSpirit);

        m_BaseSpiritList.Display(baseSpirits.ToArray());

        //get all high rank spirits;
        List <UnitData> highRank = new List <UnitData>();

        GetHighRankSpirits(highRank);
        m_HighRankSpiritList.Display(highRank.ToArray());

        displayCondition.Display(null);
    }
Exemple #4
0
 public void OnPointerClick(PointerEventData eventData)
 {
     cardDisplay.Display(cards);
 }
Exemple #5
0
 public void DisplayCard(Card cardToDisplay)
 {
     menuAudioManager.PlayMainButtonClick();
     cardDisplay.SetActive(true);
     cardDisplay.Display(cardToDisplay);
 }