カスタマイズ設定 設定メソッド追加

This commit is contained in:
kimura 2022-05-13 10:49:34 +09:00
parent 0f59e3b811
commit ce05ce22b6
1 changed files with 26 additions and 0 deletions

View File

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