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();