이름 변경
This commit is contained in:
parent
2b2cc2b320
commit
f13e9e13c4
@ -13,6 +13,7 @@ public class DataManager : Singleton<DataManager>, IManager
|
||||
|
||||
private const string AssetLabel = "GoogleSheetSo";
|
||||
private const string Icon = "_icon";
|
||||
private const string AtlasLabel = "Atlas";
|
||||
|
||||
public void PreInit()
|
||||
{
|
||||
@ -21,7 +22,7 @@ public void PreInit()
|
||||
|
||||
public async Task Init()
|
||||
{
|
||||
await LoadAllGameDataSo();
|
||||
await LoadAllGameDataAssets();
|
||||
await LoadSpriteAtlas();
|
||||
}
|
||||
|
||||
@ -30,7 +31,7 @@ public void PostInit()
|
||||
|
||||
}
|
||||
|
||||
private async Task LoadAllGameDataSo()
|
||||
private async Task LoadAllGameDataAssets()
|
||||
{
|
||||
var assets = await AssetManager.Instance.LoadAssetsByLabel<ScriptableObject>(AssetLabel);
|
||||
_dataAssetTable = new Dictionary<Type, ScriptableObject>(assets.Count);
|
||||
@ -45,7 +46,7 @@ private async Task LoadAllGameDataSo()
|
||||
|
||||
private async Task LoadSpriteAtlas()
|
||||
{
|
||||
List<SpriteAtlas> spriteAtlases = await AssetManager.Instance.LoadAssetsByLabel<SpriteAtlas>(DataConstants.AtlasLabel);
|
||||
List<SpriteAtlas> spriteAtlases = await AssetManager.Instance.LoadAssetsByLabel<SpriteAtlas>(AtlasLabel);
|
||||
_spriteAtlas = new Dictionary<string, Sprite>(spriteAtlases.Count);
|
||||
|
||||
foreach (var atlas in spriteAtlases)
|
||||
|
Loading…
Reference in New Issue
Block a user