| | |
| | | private int _NumberNumerical = 0;//数量数值
|
| | | private string _content = null;
|
| | |
|
| | | private int minRedpackCount = 10;
|
| | |
|
| | | // private int _Number = 0;//用来获取仙盟的人数
|
| | | private int _RedLines = 0;//红包额度
|
| | | RedPacketModel m_RedPacket;
|
| | |
| | | {
|
| | | if (int.Parse(NumKeyboardNumber.Value) <= (int)PlayerDatas.Instance.fairyData.fairy.MemberCount)
|
| | | {
|
| | | if (!RedBagTipsWin._RedBagTipsWin._RedBool && int.Parse(NumKeyboardNumber.Value) <= 10)
|
| | | if (!RedBagTipsWin._RedBagTipsWin._RedBool && int.Parse(NumKeyboardNumber.Value) <= minRedpackCount)
|
| | | {
|
| | | NumKeyboardNumber.Value = 10.ToString();
|
| | | _NumberNumerical = 10;//仙盟红包至少10包
|
| | | NumKeyboardNumber.Value = minRedpackCount.ToString();
|
| | | _NumberNumerical = minRedpackCount;//仙盟红包至少10包
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | if (!RedBagTipsWin._RedBagTipsWin._RedBool)
|
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.fairy.MemberCount <= 10)
|
| | | if (PlayerDatas.Instance.fairyData.fairy.MemberCount <= minRedpackCount)
|
| | | {
|
| | | NumKeyboardNumber.Value = 10.ToString();
|
| | | NumKeyboardNumber.Value = minRedpackCount.ToString();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var getWay = redPacket._DicRedBag[redPacket.RedBagId].GetWay;
|
| | | var configs = RedPackConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (config.RedEnvelopeType == getWay)
|
| | | {
|
| | | minRedpackCount = config.PacketCnt;
|
| | | }
|
| | | }
|
| | |
|
| | | _BonusAmount = redPacket._DicRedBag[redPacket.RedBagId].MoneyNum;
|
| | | _DotText1.text = _BonusAmount.ToString();
|
| | | _CountText.text = _BonusAmount.ToString();
|
| | | if ((int)PlayerDatas.Instance.fairyData.fairy.MemberCount <= 10)
|
| | | if ((int)PlayerDatas.Instance.fairyData.fairy.MemberCount <= minRedpackCount)
|
| | | {
|
| | | _NumberNumerical = 10;//仙盟红包至少10包
|
| | | _NumberNumerical = minRedpackCount;//仙盟红包至少10包
|
| | | _DotText2.text = _NumberNumerical.ToString();
|
| | | }
|
| | | else
|
| | | {
|
| | | _NumberNumerical = 10;
|
| | | _NumberNumerical = minRedpackCount;
|
| | | _DotText2.text = _NumberNumerical.ToString();
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (_NumberNumerical <= 10)
|
| | | if (_NumberNumerical <= minRedpackCount)
|
| | | return;
|
| | | _NumberNumerical -= 1;
|
| | | _DotText2.text = _NumberNumerical.ToString();
|