| | |
| | | }
|
| | |
|
| | | //有可进行和进行中的
|
| | | public bool HasWorking()
|
| | | public bool HasWork()
|
| | | {
|
| | | return campInfoDict.Values.Any(x => x.GoldID != 0);
|
| | | }
|
| | |
|
| | | //进行中的
|
| | | public bool HasWorking(int campID)
|
| | | {
|
| | | if (campInfoDict.ContainsKey(campID))
|
| | | {
|
| | | return campInfoDict[campID].GoldID != 0 && campInfoDict[campID].EndTime != 0;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public string GetCampItemName(GoldRushItemConfig config)
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (UIHelper.GetMoneyCnt(52) <= 0 && !HasWorking())
|
| | | if (UIHelper.GetMoneyCnt(52) <= 0 && !HasWork())
|
| | | {
|
| | | PauseAutoWorking();
|
| | | SysNotifyMgr.Instance.ShowTip("GoldRush10");
|