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

33 lines
565 B
C#
Raw Permalink 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,
2024-04-07 18:28:23 +02:00
Pizza,
Plunger
2024-04-07 12:39:05 +02:00
}
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
}
}