public void ActivateSkinButton(int skinNumber) { if (boughtSkins[skinNumber]) { //Debug.Log("Skin already bought"); ActivateSkinGameObject(skinNumber); } else if (!boughtSkins[skinNumber]) { if (mainDataScript.BuySkin(skinNumber)) { ActivateSkinGameObject(skinNumber); skinsPrices[skinNumber - 1].gameObject.SetActive(false); // -1 means default(What havent price viever) } UpdateShopUI(); } }