Esempio n. 1
0
        /// <summary>
        /// 计算补全输赢的筹码
        /// </summary>
        /// <param name="bWin">庄家输赢数据</param>
        /// <param name="menBet">每门下注额</param>
        private void ResultBet(int[] bWin, int[] menBet)
        {
            if (bWin == null || bWin.Length <= 0)
            {
                return;
            }
            if (menBet == null || bWin.Length <= 0)
            {
                return;
            }

            for (int i = 0; i < bWin.Length; i++)
            {
                int bw = bWin[i];

                if (bw < 0)
                {
                    BetCtrl.ThrowChips(-bw, i, true);  //1为庄家下注位置
                }
                else
                {
                    BetCtrl.ThrowChips(Mathf.Abs(bw - menBet[i]), i, false);
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 庄家补全筹码
        /// </summary>
        /// <param name="winIndex">补全的门</param>
        /// <param name="resultArray">每门的输赢数组</param>
        private void ResultBet(int winIndex, int[] resultArray)
        {
            if (resultArray == null)
            {
                return;
            }
            int len = resultArray.Length;

            if (len <= 0)
            {
                return;
            }

            BetCtrl.ThrowChips(-resultArray[winIndex], winIndex, true);
        }