コード例 #1
0
 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]);
 }
コード例 #2
0
        //----------------------------------------------------------------------
        // 状態取得
        //----------------------------------------------------------------------

        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);
        }
コード例 #3
0
        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);
        }