virtual carriable 클래스 추가

This commit is contained in:
NTG 2025-08-29 19:02:24 +09:00
parent d0c799f177
commit da03795275
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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)
{
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 58df8ac36f774d3293a0eee9226914f2
timeCreated: 1756455026