Fix icon not deselecting on sell (if it's selected)
This commit is contained in:
@@ -274,6 +274,7 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
|||||||
list.Remove(owned);
|
list.Remove(owned);
|
||||||
marketplaceIconStorage.Data = list.ToArray();
|
marketplaceIconStorage.Data = list.ToArray();
|
||||||
marketplaceIconStorage.Balance += data.Price;
|
marketplaceIconStorage.Balance += data.Price;
|
||||||
|
if (data.UUID == marketplaceIconStorage.Selected) marketplaceIconStorage.Selected = null;
|
||||||
iconPurchaseSound.Stop();
|
iconPurchaseSound.Stop();
|
||||||
iconPurchaseSound.Play();
|
iconPurchaseSound.Play();
|
||||||
balanceText.text = "You have " + Tools.FormatWithCommas(marketplaceIconStorage.Balance) + " coins to spend";
|
balanceText.text = "You have " + Tools.FormatWithCommas(marketplaceIconStorage.Balance) + " coins to spend";
|
||||||
|
|||||||
Reference in New Issue
Block a user