private static void ReleaseAtlas(string src) { src = src.ToLower(); AssetManager.AssetOfTPManager.m_reference_atlas.Remove(ConstTP.src_To_suffix_atlas(src)); if (AssetManager.AssetOfTPManager.m_atlas_uisprites.ContainsKey(src)) { AssetManager.AssetOfTPManager.m_atlas_uisprites.set_Item(src, null); AssetManager.AssetOfTPManager.m_atlas_uisprites.Remove(src); } AssetManager.MinusAssetRef(FileSystem.GetPath(src + "_pb", string.Empty)); }
private static void AddToUiSprites(string src, Dictionary <string, SpriteRenderer> sprites) { if (sprites == null) { return; } src = src.ToLower(); if (!AssetManager.AssetOfTPManager.m_atlas_uisprites.ContainsKey(src)) { AssetManager.AssetOfTPManager.m_atlas_uisprites.set_Item(src, sprites); AssetManager.AssetOfTPManager.InitReference(ConstTP.src_To_suffix_atlas(src)); AssetManager.AddAssetRef(ConstTP.src_To_suffix_prefab(src)); } }