//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); }
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); }); } } }
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); //} }