|
@@ -58,7 +58,7 @@ namespace GFGGame
|
|
NpcScore = npcScore,
|
|
NpcScore = npcScore,
|
|
UseRecommend = false
|
|
UseRecommend = false
|
|
});
|
|
});
|
|
- bool ifFirstFinish = false;
|
|
|
|
|
|
+ bool isFirstFinish = false;
|
|
if (response != null)
|
|
if (response != null)
|
|
{
|
|
{
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
@@ -79,7 +79,7 @@ namespace GFGGame
|
|
|
|
|
|
if (response.HasOnceBonus)
|
|
if (response.HasOnceBonus)
|
|
{
|
|
{
|
|
- ifFirstFinish = true;
|
|
|
|
|
|
+ isFirstFinish = true;
|
|
}
|
|
}
|
|
InstanceZonesDataManager.TrySetLevelPass(response.LevelCfgId);
|
|
InstanceZonesDataManager.TrySetLevelPass(response.LevelCfgId);
|
|
ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW, new StoryFightResultData
|
|
ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW, new StoryFightResultData
|
|
@@ -90,11 +90,15 @@ namespace GFGGame
|
|
Star = response.Star,
|
|
Star = response.Star,
|
|
BonusList = bonusList
|
|
BonusList = bonusList
|
|
}, null, true);
|
|
}, null, true);
|
|
|
|
+ if (response.HasOnceBonus)
|
|
|
|
+ {
|
|
|
|
+ FunctionOpenDataManager.Instance.CheckHasChapterFunOpen(response.LevelCfgId);
|
|
|
|
+ }
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
InstanceZonesController.OnFinishStoryLevel(levelCfgId, false, false);
|
|
InstanceZonesController.OnFinishStoryLevel(levelCfgId, false, false);
|
|
- if (ifFirstFinish)
|
|
|
|
|
|
+ if (isFirstFinish)
|
|
{
|
|
{
|
|
//首次通过要检查是否有功能开启
|
|
//首次通过要检查是否有功能开启
|
|
FunctionOpenDataManager.Instance.CheckHasChapterFunOpen(response.LevelCfgId);
|
|
FunctionOpenDataManager.Instance.CheckHasChapterFunOpen(response.LevelCfgId);
|