public uint ChipChose = 0; //自己下注选择 private void Click(GameObject go) { if (!GameData.m_TableInfo.EnXianJiaMaiMA) { if (go == ChipOneBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[0]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[0], OtherChipDic); } else if (go == ChipTwoBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[1]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[1], OtherChipDic); } else if (go == ChipThreeBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[2]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[2], OtherChipDic); } // NiuNiuGame.Instance.ChipPanel.SetActive(false); } else { if (go == ChipOneBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[0]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[0], OtherChipDic); } else if (go == ChipTwoBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[1]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[1], OtherChipDic); } else if (go == ChipThreeBtn.gameObject) { ChipChose = GameData.m_TableInfo.CanChipList[2]; ClientToServerMsg.SendDropChip(GameData.m_TableInfo.CanChipList[2], OtherChipDic); } } ChipOneBtn.gameObject.SetActive(false); ChipTwoBtn.gameObject.SetActive(false); ChipThreeBtn.gameObject.SetActive(false); }
/// <summary> /// 发送下注 /// </summary> public void SendChip() { ClientToServerMsg.SendDropChip(ChipChose, OtherChipDic); }