From da03795275bf442d23bc6d06070f90fe5c89855e Mon Sep 17 00:00:00 2001 From: NTG Date: Fri, 29 Aug 2025 19:02:24 +0900 Subject: [PATCH] =?UTF-8?q?virtual=20carriable=20=ED=81=B4=EB=9E=98?= =?UTF-8?q?=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Scripts/Game/GameObject/VirtualItem.cs | 28 +++++++++++++++++++ .../Game/GameObject/VirtualItem.cs.meta | 3 ++ 2 files changed, 31 insertions(+) create mode 100644 Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs create mode 100644 Assets/_DDD/_Scripts/Game/GameObject/VirtualItem.cs.meta 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