예제 #1
0
 void Reset()
 {
     CardsCtrl.Reset();
     BetCtrl.Reset();
     BetCtrl.AllBet.SetChipBtnsState(true);
     CancelInvoke();
 }
예제 #2
0
 void Reset()
 {
     ResetGame();
     CardsCtrl.Reset();
     BetCtrl.Reset();
     BetCtrl.AllBet.SetChipBtnsState(true);
     CancelInvoke();
     CardsCtrl02.SetCardCtrlActive(false);
 }
예제 #3
0
        public override void GameResponseStatus(int type, ISFSObject response)
        {
            var gdata = App.GetGameData <BrnnGameData>();

            switch (type)
            {
            case RequestType.Bet:
                BetCtrl.Bet(response);
                ProgressCtrl.RefreshNum(response);
                ShowNumCtrl.RefreshNum(response);
                if (response.GetInt("seat") == gdata.SelfSeat)
                {
                    if (gdata.GetPlayerInfo().CoinA < gdata.MiniApplyBanker)
                    {
                        ApplyCtrl.Instance.SetStutus(2);
                    }
                }
                break;

            case RequestType.BeginBet:
                gdata.SetGameStatus(YxEGameStatus.Play);
                gdata.BeginBet = true;
                CardsCtrl.ReSetPonits();
                CardsCtrl.ReSetGiveCardsStatus();
                ShowNumCtrl.Reset();
                ReSetGame();
                BetCtrl.Reset();

                ProgressCtrl.ReSetCountdown(16);
                ProgressCtrl.BeginCountdown();
                ApplyCtrl.RefreshBanker();
                break;

            default:
                base.GameResponseStatus(type, response);
                return;
            }
            OnGetPlayers(response);
        }
예제 #4
0
 void Reset()
 {
     BetCtrl.Reset();
     CancelInvoke();
 }