2024-09-10 07:26:29 +00:00
|
|
|
// using BlueWater.Items;
|
|
|
|
// using BlueWater.Uis;
|
|
|
|
// using UnityEngine;
|
|
|
|
// using UnityEngine.Serialization;
|
|
|
|
//
|
|
|
|
// namespace BlueWater.Tycoons
|
|
|
|
// {
|
|
|
|
// public class Brewing : InteractionFurniture
|
|
|
|
// {
|
|
|
|
// [SerializeField]
|
|
|
|
// private DrinkCategory _category;
|
|
|
|
//
|
|
|
|
// [FormerlySerializedAs("_currentDrinkData")] [SerializeField]
|
|
|
|
// private LiquidData currentLiquidData;
|
|
|
|
//
|
|
|
|
// [SerializeField]
|
|
|
|
// private int _currentQuantity;
|
|
|
|
//
|
|
|
|
// public override void Interaction()
|
|
|
|
// {
|
|
|
|
// var brewingUi = TycoonUiManager.Instance.BrewingUi;
|
|
|
|
// brewingUi.SetBrewing(this);
|
|
|
|
// brewingUi.Open(TycoonUiManager.Instance.PopupUiList);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// public override bool CanInteraction()
|
|
|
|
// {
|
|
|
|
// return !IsOpened;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// public void SetDrink(LiquidData liquidData)
|
|
|
|
// {
|
|
|
|
// currentLiquidData = liquidData;
|
|
|
|
// _currentQuantity = currentLiquidData.Amount;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// public bool IsEmptyDrink()
|
|
|
|
// {
|
|
|
|
// return currentLiquidData == null || _currentQuantity <= 0;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// public DrinkCategory GetDrinkCategory()
|
|
|
|
// {
|
|
|
|
// return _category;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|