Esempio n. 1
0
 public static void AddReferenceCountOfRawImage(RawImage rawImage)
 {
     if (rawImage != null && rawImage.get_texture() != null)
     {
         AssetManager.AddAssetRef(FileSystem.GetPath(rawImage.get_texture().get_name(), string.Empty));
     }
 }
Esempio n. 2
0
 public static void AddReferenceCountOfRawImage(Texture texture)
 {
     if (texture != null)
     {
         AssetManager.AddAssetRef(FileSystem.GetPath(texture.get_name(), string.Empty));
     }
 }
Esempio n. 3
0
 private void Awake()
 {
     this.IsAwake = true;
     if (!string.IsNullOrEmpty(this.m_resName))
     {
         AssetManager.AddAssetRef(this.m_resName);
     }
 }
Esempio n. 4
0
 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));
     }
 }