示例#1
0
    private void OnCardStackZoomedIn(object sender, CardStackEventArgs args)
    {
        CardStackValue value = args.CardStack.Value;

        textComponent.text = value.NumberValue.ToString();
        gameObject.SetActive(true);
    }
示例#2
0
    /// <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));
    }