GameVsJam/3d Prototyp/Assets/Scripts/Interaction/PickupInteractible.cs

32 lines
548 B
C#
Raw Normal View History

2024-04-07 00:09:53 +02:00
using UnityEngine;
namespace Interaction
{
2024-04-07 12:39:05 +02:00
public enum ItemType
{
Mate,
Coffee,
Pizza
}
2024-04-07 00:09:53 +02:00
public class PickupInteractible : Interactible
{
[SerializeField]
private GameObject _model;
[SerializeField]
private string _name;
2024-04-07 12:39:05 +02:00
[SerializeField]
private ItemType _itemType;
public int UsesLeft = 1;
2024-04-07 00:09:53 +02:00
public GameObject Model => _model;
public string Name => _name;
2024-04-07 12:39:05 +02:00
public ItemType ItemType => _itemType;
2024-04-07 00:09:53 +02:00
}
}