void ResetCardPoints() { currentCardPoints = currentMaxCardPoints; if (OnUpdateCardPoints != null) { OnUpdateCardPoints.Invoke(currentCardPoints); } }
void UpdateCurrentCardPoints(CardObject cardObject) { currentCardPoints -= cardObject.cardDefinition.cost; if (OnUpdateCardPoints != null) { OnUpdateCardPoints.Invoke(currentCardPoints); } if (currentCardPoints == 0) { if (OnAllCardPointsUsed != null) { OnAllCardPointsUsed.Invoke(); } } }