private void OnCardStackZoomedIn(object sender, CardStackEventArgs args) { CardStackValue value = args.CardStack.Value; textComponent.text = value.NumberValue.ToString(); gameObject.SetActive(true); }
/// <summary> /// Turns all the cards so they are facing up. /// </summary> public void TurnCardsUp() { foreach (GameObject cardGameObject in cardGameObjects) { cardGameObject.GetComponent <CardStackEntry>().TurnOver(); } CardStackValue value = Value; ValueChanged?.Invoke(this, new ValueChangedEventArgs(value.NumberValue, value.NumberValue)); }