diff --git a/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs b/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs new file mode 100644 index 000000000..883993f82 --- /dev/null +++ b/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs @@ -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) + { + + } + } +} \ No newline at end of file diff --git a/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs.meta b/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs.meta new file mode 100644 index 000000000..8e9811e69 --- /dev/null +++ b/Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 58df8ac36f774d3293a0eee9226914f2 +timeCreated: 1756455026 \ No newline at end of file