From 8e1b044c95eb493af3b7e9c80e526b751d2a522a Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 11 Oct 2021 19:24:42 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=87=8F=E6=B3=A8=E6=96=87=E6=99=82?= =?UTF-8?q?=E3=80=81=E3=82=BF=E3=83=B3=E3=82=AF=E3=81=AE=E7=A9=BA=E3=81=8D?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92=E5=9B=9E=E9=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/recipe/Scripts/RecipeDetailView.cs | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs index d4644a53..0f22d23e 100644 --- a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs +++ b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs @@ -68,10 +68,24 @@ public class RecipeDetailView : MonoBehaviour SetRecipe(data, viewType); var isPassedAmount = CheckAmount(data); var isPassedTank = CheckTank(data); - nextButton.interactable = isPassedAmount && isPassedTank; - panSelector.gameObject.SetActive(!isPassedAmount || isPassedTank); - disabledNextButton.SetActive(!isPassedAmount || !isPassedTank); - tankCaution.SetActive(isPassedAmount && !isPassedTank); + + switch (viewType) + { + case ProductViewType.Default: + nextButton.interactable = isPassedAmount && isPassedTank; + panSelector.gameObject.SetActive(!isPassedAmount || isPassedTank); + disabledNextButton.SetActive(!isPassedAmount || !isPassedTank); + tankCaution.SetActive(isPassedAmount && !isPassedTank); + break; + case ProductViewType.BulkOrder: + nextButton.interactable = isPassedAmount; + panSelector.gameObject.SetActive(true); + disabledNextButton.SetActive(!nextButton.interactable); + tankCaution.SetActive(false); + break; + default: + throw new ArgumentOutOfRangeException(); + } } public void SetRecipe(ProductData data, ProductViewType viewType)