public void AssignCard(PrepCard newCard, PrepHandDisplayer assignedDisplayer) { SetupButton(); assignedCard = newCard; GetComponent<PrepCardGraphic>().AssignCard(newCard,true); this.assignedDisplayer = assignedDisplayer; }
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()); }
void TryGeneratePrepCard() { if (addedCombatCards.Count > 0) addedPrepCard = new CustomPrepCard(itemName, "Add cards to your deck", GetItemSprite(), addedCombatCards); else addedPrepCard = null; }
public bool TryGetAddedPrepCard(out PrepCard card) { card = addedPrepCard; if (card == null) return false; else return true; }
public void AssignCard(PrepCard newCard, bool showDescriptionTooltip) { base.UpdateBasicVisuals(newCard); assignedCard = newCard; description.raycastTarget = showDescriptionTooltip; }
public void AssignCard(PrepCard newCard) { AssignCard(newCard, false); }
public override int GetHashCode() { return(PrepCard.GetHashCode() ^ CombatCard.GetHashCode() ^ DashCard.GetHashCode()); }