ProjectDDD/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs

28 lines
575 B
C#
Raw Normal View History

2025-08-29 10:02:24 +00:00
using UnityEngine;
namespace DDD
{
public class VirtualItem : ICarriable
{
private readonly string _itemId;
public VirtualItem(string itemId)
{
_itemId = itemId;
}
public string GetCarrierId() => _itemId;
public CarriableType GetCarriableType() => CarriableType.VirtualItem;
public GameObject GetGameObject() => null;
public bool CanCarry()
{
return true;
}
public void OnCarried(ICarrier carrier)
{
}
}
}