2024-07-06 12:13:58 +00:00
|
|
|
using BlueWater.Items;
|
2024-07-02 18:27:56 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace BlueWater.Tycoons
|
|
|
|
{
|
|
|
|
public class BeverageMachine : InteractionFurniture
|
|
|
|
{
|
|
|
|
[SerializeField]
|
2024-07-08 20:06:22 +00:00
|
|
|
private int _itemIdx = 40001;
|
2024-07-02 18:27:56 +00:00
|
|
|
|
|
|
|
public override void Interaction()
|
|
|
|
{
|
2024-07-06 12:13:58 +00:00
|
|
|
// TODO : 미니게임을 시작하고, 성공 여부에 따라 음식 품질 부여
|
2024-07-08 20:06:22 +00:00
|
|
|
CurrentTycoonPlayer.CarryItem(_itemIdx, ItemQuality.None);
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool CanInteraction()
|
|
|
|
{
|
|
|
|
return !CurrentTycoonPlayer.IsCarriedItem();
|
2024-07-02 18:27:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|