カスタマイズ設定 設定メソッド追加
This commit is contained in:
parent
0f59e3b811
commit
ce05ce22b6
|
|
@ -37,5 +37,31 @@ namespace MyGame.Scenes.marketing.Scripts
|
||||||
throw new ArgumentOutOfRangeException(nameof(category), category, null);
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue