28 lines
575 B
C#
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)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |