From ce05ce22b68c1696b1c9c999432e08a2a0412e6d Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 13 May 2022 10:49:34 +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=E8=A8=AD=E5=AE=9A=20=E8=A8=AD=E5=AE=9A=E3=83=A1?= =?UTF-8?q?=E3=82=BD=E3=83=83=E3=83=89=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/ShopCustomizeSettings.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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