コード例 #1
0
 public UIOperation.gameState       gameState; //游戏内状态(定缺中、选牌中)
 public void clear()
 {
     this.isShow    = true;
     this.headIndex = 0;
     this.money     = 0;
     this.name      = "";
     this.isZhuang  = false;
     this.dingque   = odao.scmahjong.TileDef.Kind.NONE;
     this.gameState = UIOperation.gameState.NONE;
 }
コード例 #2
0
 /// <summary>
 /// 设置玩家游戏状态(定缺中,换牌中)
 /// </summary>
 /// <param name="index"></param>
 /// <param name="state"></param>
 public void setGamePlayerState(int index, UIOperation.gameState state)
 {
     if (index < GameMessage.TABLE_PLAYER_NUM)
     {
         UIOperation.Instance._headDatas[index].gameState = state;
     }
     else
     {
         Debug.LogError("UIGameSetingController setGamePlayerState index cross:" + index);
     }
 }
コード例 #3
0
 public void setGamePlayerStateAndOnRefresh(int index, UIOperation.gameState state)
 {
     setGamePlayerState(index, state);
     OnRefreshPlayerState();
 }