protected override void SetReadyState(bool isReady) { if (ReadyStateFlag == null) { return; } ReadyStateFlag.SetActive(!isReady); }
/// <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); }
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; }
public virtual void OnGameStart() { ReadyStateFlag.SetActive(false); PlayerBet(App.GetGameData <DuifenGlobalData>().GuoBet); }
/// <summary> /// 进入叫分阶段 /// </summary> /// <param name="args"></param> protected virtual void OnTypeGrabSpeaker(DdzbaseEventArgs args) { ReadyStateFlag.SetActive(false); //隐藏准备标记 }
/// <summary> /// 发牌阶段 /// </summary> /// <param name="args"></param> protected virtual void OnAlloCateCds(DdzbaseEventArgs args) { ReadyStateFlag.SetActive(false); }
internal virtual void OnGameStart() { ReadyStateFlag.SetActive(false); SetReadyBtnActive(false); SetStartBtnActive(false); }
public void SetReady(bool state) { ReadyStateFlag.SetActive(state); }