| | |
| | | bool isMoneyEnough = true;
|
| | | if (xbNum == 0)
|
| | | {
|
| | | isMoneyEnough = UIHelper.GetMoneyCnt(1) >= (ulong)oneMoney;
|
| | | isMoneyEnough = UIHelper.GetMoneyCnt(2) >= (ulong)oneMoney;
|
| | | }
|
| | | else
|
| | | {
|
| | | isMoneyEnough = UIHelper.GetMoneyCnt(1) >= (ulong)manyMoney;
|
| | | isMoneyEnough = UIHelper.GetMoneyCnt(2) >= (ulong)manyMoney;
|
| | | }
|
| | |
|
| | | switch(costType)
|
| | |
| | | case 0:
|
| | | if (!isMoneyEnough)
|
| | | {
|
| | | WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | //WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | SysNotifyMgr.Instance.ShowTip("LackMoney", 2);
|
| | | return;
|
| | | }
|
| | | break;
|