GetIcon 기능 추가
(Environment의 이미지도 있으면서 ui의 이미지도 다른 경우)
This commit is contained in:
parent
9e1c6e46c2
commit
4e1f5f1a2e
@ -12,6 +12,7 @@ public class DataManager : Singleton<DataManager>, IManager
|
||||
private Dictionary<string, Sprite> _spriteAtlas;
|
||||
|
||||
private const string SoLabel = "GoogleSheetSo";
|
||||
private const string Icon = "_icon";
|
||||
|
||||
public void PreInit()
|
||||
{
|
||||
@ -79,10 +80,6 @@ public T GetDataSo<T>() 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user