Esempio n. 1
0
    public void SetItem(CurrencyType currencyType)
    {
        this.itemName.text            = currencyType.Name();
        this.itemName.color           = this.rarityColors.Rare;
        this.currencyDescription.text = currencyType.Description();
        this.modifierName.text        = string.Empty;
        this.implicitMods.ClearDamage();
        this.explicitMods.ClearDamage();
        this.qualityContainer.SetActive(false);
        this.SetActiveType(null);
        this.SetDamage(0);

        Addressables.LoadAssetAsync <Sprite>("card_base/Currency").Completed += load => {
            this.backgroundImage.sprite = load.Result;
        };

        Addressables.LoadAssetAsync <Sprite>("currency/" + currencyType).Completed += load => {
            this.itemImage.sprite = load.Result;
        };
    }