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;
|
|
|
|
}
|
|
|
|
|
2025-09-01 08:55:26 +00:00
|
|
|
public string GetId() => _itemId;
|
2025-08-29 10:02:24 +00:00
|
|
|
public CarriableType GetCarriableType() => CarriableType.VirtualItem;
|
|
|
|
public GameObject GetGameObject() => null;
|
|
|
|
|
|
|
|
public bool CanCarry()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnCarried(ICarrier carrier)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|