From 771cfa2e797bdd43a9ef97d73a146f2b96446192 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 13 May 2022 10:24:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=9E=E3=82=A4?= =?UTF-8?q?=E3=82=BA=E5=88=9D=E6=9C=9F=E8=A8=AD=E5=AE=9A=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scripts/GameDataManager.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scripts/GameDataManager.cs b/popcorn/Assets/MyGame/Scripts/GameDataManager.cs index 53c97d6f..863294c2 100644 --- a/popcorn/Assets/MyGame/Scripts/GameDataManager.cs +++ b/popcorn/Assets/MyGame/Scripts/GameDataManager.cs @@ -412,7 +412,19 @@ public sealed class GameData { if (ShopCustomizeLevel < 1) { - ShopCustomizeLevel = 0; + ShopCustomizeLevel = 1; + } + + if (ShopCustomizeMyItems.Length < 1) + { + ShopCustomizeMyItems = new[] + { + Const.ShopCustomizeDefaultCartId, + Const.ShopCustomizeDefaultDecoration1Id, + Const.ShopCustomizeDefaultDecoration2Id, + Const.ShopCustomizeDefaultStockId, + Const.ShopCustomizeDefaultSignBoardId, + }; } // 追加した要素の初期化用 @@ -437,6 +449,7 @@ public sealed class GameData { WaitAddStock = WaitAddStock ?? new ProductStockData{Rarity = ProductRarity.Normal}; AutoCookProducts = AutoCookProducts ?? Array.Empty(); ShopCustomizeSettings = ShopCustomizeSettings ?? new ShopCustomizeSettings(); + ShopCustomizeMyItems = ShopCustomizeMyItems ?? Array.Empty(); } private Dictionary ArrayToDictionary(KeyValueOfintint[] array){ var dictionary = new Dictionary();