Пример #1
0
 void onClickItemBetMoney(ItemBetMoneyXeng obj)
 {
     gameControl.sound.clickBtnAudio();
     if (bet_money == 0)
     {
         return;
     }
     obj.setMoney(bet_money);
     money_total       -= bet_money;
     text_TongTien.text = "" + money_total;
     btn_spin.enabled   = true;
     btn_reset.enabled  = true;
 }
Пример #2
0
    void resetGame()
    {
        resetSpin();
        setMoneyInGame();
        text_ThangCuoc.text = "0";
        btn_spin.enabled    = false;
        btn_reset.enabled   = true;
        for (int i = 0; i < list_item_bet_money.Length; i++)
        {
            ItemBetMoneyXeng it = list_item_bet_money[i];
            it.money = 0;
            it.setMoney(0);
        }

        enableList(false);
        bet_money = 0;
    }