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; }
/// <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); } }
public void setGamePlayerStateAndOnRefresh(int index, UIOperation.gameState state) { setGamePlayerState(index, state); OnRefreshPlayerState(); }