public void OnCardLost(DominionCard card)
 {
     if (autoCloseMode)
     {
         gameObject.SetActive(false);
     }
 }
 public void OnCardFound(DominionCard card)
 {
     if (!gameObject.activeInHierarchy || autoReplaceMode)
     {
         gameObject.SetActive(true);
         cardNameText.text        = card.getName();
         cardDescriptionText.text = card.getDescription();
         cardInfoScrollbar.value  = 1;
     }
 }
Exemplo n.º 3
0
 private void UpdateLoadingText()
 {
     if (loadingText != null)
     {
         loadingText.text = cardsLoaded + "/" + DominionCard.getCardsCount() + " cards loaded";
         if (cardsLoaded >= DominionCard.getCardsCount())
         {
             loadingText.enabled = false;
         }
     }
 }
Exemplo n.º 4
0
        private void InitCard(XmlNode xmlCard)
        {
            string       cardId = xmlCard.Attributes["id"].InnerText;
            DominionCard card   = new DominionCard(cardId, cardId, xmlCard.ParentNode.Attributes["id"].InnerText, xmlCard.InnerText);

            Debug.Log("instantiating " + card.getId());
            GameObject goCard = Instantiate(cardPrefab);
            DominionCardTargetBehaviour behaviour = goCard.GetComponent <DominionCardTargetBehaviour>();

            behaviour.Path = cardId + ".jpg";
            behaviour.Name = cardId;
            behaviour.Bind(imageTrackerBehaviour);
        }
        void OnTargetLost(TargetAbstractBehaviour behaviour)
        {
            Debug.Log("Lost: " + Target.Name);
            DominionCard card = DominionCard.getCard(Target.Name);

            if (card == null)
            {
                Debug.LogError("Card " + Target.Name + " not found in repository");
            }
            else
            {
                AugmentedDominionBehaviour.Instance.OnCardLost(card);
            }
        }
Exemplo n.º 6
0
 public void OnCardLost(DominionCard card)
 {
     currentUIBehaviour.OnCardLost(card);
 }
Exemplo n.º 7
0
 public void OnCardFound(DominionCard card)
 {
     currentUIBehaviour.OnCardFound(card);
 }