ProjectDDD/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs
2025-08-29 19:02:24 +09:00

28 lines
575 B
C#

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)
{
}
}
}