Exemple #1
0
        //private Asset asset;

        public void Init(InventoryAssetResponse.DemoAppAsset asset)
        {
            //this.asset = asset;
            if (asset != null)
            {
                text.text     = asset.name;
                asset.preview = preview;
            }
            TexturesSaver.QueueForDownload(asset);
        }
Exemple #2
0
 public void UpdateScreenData(ILootLockerStageData stageData)
 {
     asset = stageData as InventoryAssetResponse.DemoAppAsset;
     if (asset != null)
     {
         if (asset.files != null && asset.files.Length > 0)
         {
             url = asset.files.Last().url;
             TypeOfFile filetype = GetFileType(url);
             downloadFileBtn.onClick.AddListener(() =>
             {
                 LoadingManager.ShowLoadingScreen();
                 DownloadFile(filetype);
             });
         }
     }
 }
Exemple #3
0
        public void Init(ILootLockertemData data)
        {
            this.data = data;
            asset     = data as InventoryAssetResponse.DemoAppAsset;
            InventoryAssetResponse.Inventory inventory = data as InventoryAssetResponse.Inventory;
            if (asset == null && inventory != null)
            {
                asset = inventory.asset;
            }

            if (asset != null)
            {
                asset.preview = preview;
            }

            TexturesSaver.QueueForDownload(asset);
            activeBorder.GetComponent <Image>().color = inActiveColor;
            //if (inventory != null)
            //{
            //    activeBorder.SetActive((bool)inventory.rental.is_active);
            //}
        }