|
@@ -178,7 +178,30 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
ViewManager.Show<FieldView>();
|
|
|
- ViewManager.Show<FieldFightInfoView>();
|
|
|
+ bool result = await FieldSProxy.ReqFieldInstanceResult();
|
|
|
+ FieldDataManager _dataManager = FieldDataManager.Instance;
|
|
|
+ //这里判断如果获取的马蹄金超过上限了,就终止挑战
|
|
|
+ if (_dataManager.fieldInfos.bonusWeekly >= _dataManager.fieldInfos.bonusMaxLimit)
|
|
|
+ {
|
|
|
+ AlertUI.Show("本周可获得奖励已达上限,是否继续挑战?")
|
|
|
+ .SetLeftButton(true)
|
|
|
+ .SetRightButton(true, "确认",(object data) =>
|
|
|
+ {
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ InstanceZonesDataManager.currentCardId = FieldFightDataManager.Instance.CurrentCardId;
|
|
|
+ InstanceZonesDataManager.currentScoreType = FieldFightDataManager.Instance.CurrentScoreType;
|
|
|
+ InstanceZonesDataManager.currentLevelCfgId = FieldFightDataManager.Instance.currentLevelCfgId;
|
|
|
+
|
|
|
+ ViewManager.Hide<FieldView>();
|
|
|
+ ViewManager.Show<StoryFightTargetView>();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ViewManager.Show<FieldFightInfoView>();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else
|