diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeSettings.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeSettings.cs index ab8cd32b..03a69200 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeSettings.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeSettings.cs @@ -37,5 +37,31 @@ namespace MyGame.Scenes.marketing.Scripts throw new ArgumentOutOfRangeException(nameof(category), category, null); } } + + public void SetSetting(ShopCustomizeData customizeData) + { + switch (customizeData.Category) + { + case ShopCustomizeCategory.Category1: + SignBoard = customizeData.id; + break; + case ShopCustomizeCategory.Category2: + Decoration1 = customizeData.id; + break; + case ShopCustomizeCategory.Category3: + Cart = customizeData.id; + break; + case ShopCustomizeCategory.Category4: + Stock = customizeData.id; + break; + case ShopCustomizeCategory.Category5: + Decoration2 = customizeData.id; + break; + // case ShopCustomizeCategory.Category6: + // return 0; + default: + throw new ArgumentOutOfRangeException(); + } + } } } \ No newline at end of file