public void AssignCard(PrepCard newCard, PrepHandDisplayer assignedDisplayer)
 {
     SetupButton();
     assignedCard = newCard;
     GetComponent<PrepCardGraphic>().AssignCard(newCard,true);
     this.assignedDisplayer = assignedDisplayer;
 }
예제 #2
0
    public void ChangeTurn()
    {
        StopAllCoroutines();
        Turn++;

        EndTurnBtn.interactable = IsPlayerTurn;

        if (IsPlayerTurn)
        {
            foreach (CardInfoScr PrepCard in PlayerHandCards)
            {
                if (PrepCard.SelfCard.Preparation != 0)
                {
                    PrepCard.SelfCard.Preparation--;
                    PrepCard.RefreshData();
                }
            }
        }
        else
        {
            foreach (CardInfoScr PrepCard in EnemyHandCards)
            {
                if (PrepCard.SelfCard.Preparation != 0)
                {
                    PrepCard.SelfCard.Preparation--;
                }
            }
        }
        EnemyManaPool = PlayerManapool = 10;
        ShowMana();
        GiveNewCards(IsPlayerTurn);
        StartCoroutine(TurnFunc());
    }
예제 #3
0
 void TryGeneratePrepCard()
 {
     if (addedCombatCards.Count > 0)
         addedPrepCard = new CustomPrepCard(itemName, "Add cards to your deck", GetItemSprite(), addedCombatCards);
     else
         addedPrepCard = null;
 }
예제 #4
0
 public bool TryGetAddedPrepCard(out PrepCard card)
 {
     card = addedPrepCard;
     if (card == null)
         return false;
     else
         return true;
 }
예제 #5
0
 public void AssignCard(PrepCard newCard, bool showDescriptionTooltip)
 {
     base.UpdateBasicVisuals(newCard);
     assignedCard = newCard;
     description.raycastTarget = showDescriptionTooltip;
 }
예제 #6
0
 public void AssignCard(PrepCard newCard)
 {
     AssignCard(newCard, false);
 }
예제 #7
0
 public override int GetHashCode()
 {
     return(PrepCard.GetHashCode() ^ CombatCard.GetHashCode() ^ DashCard.GetHashCode());
 }