都市レベルアップ時にミッションチェックを追加
This commit is contained in:
parent
e5f0528d0b
commit
d034e55228
|
|
@ -95,6 +95,8 @@ public class HeaderManager : MonoBehaviour
|
||||||
// レベルアップ処理
|
// レベルアップ処理
|
||||||
cityGameData.ViewedShopLevel = newShopLevelData.shopLevel;
|
cityGameData.ViewedShopLevel = newShopLevelData.shopLevel;
|
||||||
GameDataManager.SaveGameData();
|
GameDataManager.SaveGameData();
|
||||||
|
// ミッションチェック
|
||||||
|
GameDataObserver.Instance.UpdateMissionProgress();
|
||||||
// シナリオ読み込み
|
// シナリオ読み込み
|
||||||
if (ItemConditionUtils.GetScriptList(newShopLevelData.cityId, ItemCondition.CityLevel, cityGameData.ViewedShopLevel).FirstOrDefault() is not { } conditionData) return;
|
if (ItemConditionUtils.GetScriptList(newShopLevelData.cityId, ItemCondition.CityLevel, cityGameData.ViewedShopLevel).FirstOrDefault() is not { } conditionData) return;
|
||||||
var levelUpScripts = scriptList.Where(data => data.id == conditionData.scriptId).ToList();
|
var levelUpScripts = scriptList.Where(data => data.id == conditionData.scriptId).ToList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue