public void ActivateEnvButton(int envNumber) { if (boughtEnviroment[envNumber]) { //Debug.Log("Skin already bought"); ActivateEnvGameObject(envNumber); } else if (!boughtEnviroment[envNumber]) { if (mainDataScript.BuyEnviroment(envNumber)) { ActivateEnvGameObject(envNumber); enviromentPrices[envNumber - 1].gameObject.SetActive(false); // -1 means default(What havent price viever) } UpdateShopUI(); } }