public T Get(string assetAddress) { if (!_resources.ContainsKey(assetAddress)) { AltoLog.FW_Error($"[{GetType().Name}] Resource not found : <b>{assetAddress}</b>"); return(null); } return(_resources[assetAddress]); }
//---------------------------------------------------------------------- // 状態取得 //---------------------------------------------------------------------- public ResourceEntry GetEntry(string assetAddress) { ResourceEntry entry; if (!_entries.TryGetValue(assetAddress, out entry)) { AltoLog.FW_Error($"[ResourceRegistry] Entry not found : {assetAddress}"); return(null); } return(entry); }
public Sprite GetSprite(string spriteName) { Sprite sprite; if (!_sprites.TryGetValue(spriteName, out sprite)) { AltoLog.FW_Error($"[SpriteAtlasStore] Sprite <b>{spriteName}</b> not found."); return(null); } return(sprite); }