
Python
- 21 ответ
- 0 вопросов
18
Вклад в тег
if (Score.scoreAmount >= 30)
{
if (PlayerPrefs.HasKey(CostWin, 1))
{
if (PlayerPrefs.GetInt(buy) == 0)
{
Score.scoreAmount -= 30;
PlayerPrefs.SetInt("coins", Score.scoreAmount);
CostW.SetActive(false);
PlayerPrefs.SetInt("buy", 1);
}
}
else
{
Score.scoreAmount -= 30;
PlayerPrefs.SetInt("coins", Score.scoreAmount);
CostW.SetActive(false);
PlayerPrefs.SetInt("buy", 1);
}
}