public void ActivateBuyButton(SkinsSettings skin) { this.skin = skin; buyButton.gameObject.SetActive(true); costToBuy.text = $"{skin.Price} COINS"; buyButton.interactable = PlayerStats.Instance.Coins >= skin.Price; }
public void ActivateSelectButton(SkinsSettings skin) { this.skin = skin; selectButton.gameObject.SetActive(true); if (isSeleceted(skin.Identifier)) { selectButton.interactable = false; selectText.text = "SELECTED"; } else { selectButton.interactable = true; selectText.text = "SELECT"; } }