Exemplo n.º 1
0
    public void ResetBtns()
    {
        allBettedValues = 0;
        for (int i = 0; i < buttonDatas.Length; i++)
        {
            Text        setNullText;
            Transform[] buttonTransform = buttonDatas[i]._buttonObj.GetComponentsInChildren <Transform>();
            setNullText      = buttonTransform[6].gameObject.GetComponent <Text>();
            setNullText.text = "0";

            CardBetted cardBettedScript = buttonTransform[0].gameObject.GetComponent <CardBetted>();
            cardBettedScript._currentCardValue = 0;
        }
    }
Exemplo n.º 2
0
    public void ResetBtns()
    {    /*
          *     //Debug.Log(CardInfo[]);
          *     List<CardInfo> getCardData = CardData.GetData();
          *     getCardData[GetRandomSeedNum.randomSeedNumClass.resultNum-1].cardName;
          *     getCardData[GetRandomSeedNum.randomSeedNumClass.resultNum-1].rewardGoldCoins;
          */
        allBettedValues = 0;
        for (int i = 0; i < buttonDatas.Length; i++)
        {
            Text        setNullText;
            Transform[] buttonTransform = buttonDatas[i]._buttonObj.GetComponentsInChildren <Transform>();
            setNullText      = buttonTransform[6].gameObject.GetComponent <Text>();
            setNullText.text = "0";

            CardBetted cardBettedScript = buttonTransform[0].gameObject.GetComponent <CardBetted>();
            cardBettedScript._currentCardValue = 0;
        }
    }
Exemplo n.º 3
0
 void Awake()
 {
     cardBettedClass = this;
 }