private void ShowMakeFavoriteCoffee(CoffeeMachineSettings.CoffeeSettings coffeeSettings) { favoriteCoffeeName.interactable = false; favoriteCoffeeName.text = coffeeSettings.CoffeeName; amountOfWater.interactable = false; amountOfWater.text = coffeeSettings.WaterUsed.ToString(); amountOfCoffee.interactable = false; amountOfCoffee.text = coffeeSettings.CoffeeSeedsUsed.ToString(); addFavoriteCoffeeButton.gameObject.SetActive(false); removeFavoriteCoffeeButton.gameObject.SetActive(true); }
private void ShowRemoveCoffeeView(CoffeeMachineSettings.CoffeeSettings currentFavCoffee) { nameField.value = currentFavCoffee.CoffeeName; nameField.isReadOnly = true; waterField.value = currentFavCoffee.WaterUsed; waterField.isReadOnly = true; coffeeField.value = currentFavCoffee.CoffeeSeedsUsed; coffeeField.isReadOnly = true; addCoffeeButton.style.display = new StyleEnum <DisplayStyle>(DisplayStyle.None); removeCoffeeButton.style.display = new StyleEnum <DisplayStyle>(DisplayStyle.Flex); }