Beispiel #1
0
 protected override void SetReadyState(bool isReady)
 {
     if (ReadyStateFlag == null)
     {
         return;
     }
     ReadyStateFlag.SetActive(!isReady);
 }
Beispiel #2
0
 /// <summary>
 /// 单局游戏结束
 /// </summary>
 /// <param name="args"></param>
 protected override void OnTypeOneRoundOver(DdzbaseEventArgs args)
 {
     base.OnTypeOneRoundOver(args);
     LandMark.SetActive(false);
     WarningAnim.gameObject.SetActive(false);
     SetSpeakSprite(string.Empty, false);
     CardCount = 0;
     ReadyStateFlag.SetActive(false);
     SetCardCountLabel(-1);
 }
Beispiel #3
0
        protected virtual void OnUserReady(DdzbaseEventArgs args)
        {
            var data = args.IsfObjData;
            int seat = data.GetInt(RequestKey.KeySeat);

            if (Info == null || seat != Info.Seat)
            {
                return;
            }
            ReadyStateFlag.SetActive(true);
            SetSpeakSprite(string.Empty, false);

            DoubleMark.SetActive(false);
            LandMark.SetActive(false);

            var ddzInfo = (DdzUserInfo)Info;

            ddzInfo.AutoState = false;
            ddzInfo.IsRate    = false;
        }
Beispiel #4
0
 public virtual void OnGameStart()
 {
     ReadyStateFlag.SetActive(false);
     PlayerBet(App.GetGameData <DuifenGlobalData>().GuoBet);
 }
Beispiel #5
0
 /// <summary>
 /// 进入叫分阶段
 /// </summary>
 /// <param name="args"></param>
 protected virtual void OnTypeGrabSpeaker(DdzbaseEventArgs args)
 {
     ReadyStateFlag.SetActive(false);    //隐藏准备标记
 }
Beispiel #6
0
 /// <summary>
 /// 发牌阶段
 /// </summary>
 /// <param name="args"></param>
 protected virtual void OnAlloCateCds(DdzbaseEventArgs args)
 {
     ReadyStateFlag.SetActive(false);
 }
Beispiel #7
0
 internal virtual void OnGameStart()
 {
     ReadyStateFlag.SetActive(false);
     SetReadyBtnActive(false);
     SetStartBtnActive(false);
 }
Beispiel #8
0
 public void SetReady(bool state)
 {
     ReadyStateFlag.SetActive(state);
 }