CapersProject/Assets/02.Scripts/Prop/Tycoon/BeverageMachine.cs

21 lines
541 B
C#
Raw Normal View History

using UnityEngine;
namespace BlueWater.Tycoons
{
public class BeverageMachine : InteractionFurniture
{
[SerializeField]
2024-08-22 10:39:15 +00:00
private string _itemIdx = "40001";
public override void Interaction()
{
// TODO : 미니게임을 시작하고, 성공 여부에 따라 음식 품질 부여
CurrentTycoonPlayer.CarryItem(_itemIdx);
}
public override bool CanInteraction()
{
return !CurrentTycoonPlayer.IsCarriedItem();
}
}
}