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

20 lines
449 B
C#
Raw Normal View History

using UnityEngine;
namespace BlueWater.Tycoons
{
public class FireWood : InteractionFurniture
{
[SerializeField]
2024-08-22 10:39:15 +00:00
private string _itemIdx = "70001";
public override void Interaction()
{
CurrentTycoonPlayer.CarryItem(_itemIdx);
}
public override bool CanInteraction()
{
return IsOpened && !CurrentTycoonPlayer.IsCarriedItem();
}
}
}