diff --git a/Assets/_DDD/_Scripts/GameData/DataManager.cs b/Assets/_DDD/_Scripts/GameData/DataManager.cs index 8316510ee..51277cba2 100644 --- a/Assets/_DDD/_Scripts/GameData/DataManager.cs +++ b/Assets/_DDD/_Scripts/GameData/DataManager.cs @@ -12,6 +12,7 @@ public class DataManager : Singleton, IManager private Dictionary _spriteAtlas; private const string SoLabel = "GoogleSheetSo"; + private const string Icon = "_icon"; public void PreInit() { @@ -79,10 +80,6 @@ public T GetDataSo() where T : ScriptableObject } public Sprite GetSprite(string key) => _spriteAtlas.GetValueOrDefault(key); - - // TODO : So가 늘어나는 경우 관리 방법 변경 필요성이 있음 - // GetItemType(id) - // GetItemImage - // GetItemName + public Sprite GetIcon(string key) => GetSprite(key + Icon); } } \ No newline at end of file