using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class mainMENU : MonoBehaviour
{
[SerializeField] int money;
public Text moneyText;
public void ButtonClick();
public bool isMulti = false;
{
money++;
}
// Update is called once per frame
void Update()
{
moneyText.text = "вы погладили леона: " + money.ToString() + " раз";
}
public void BuyMulti()
{
if (money >= 100 && isMulti == false)
{
isMulti = true;
money -= 100;
PlayerPrefs.SetInt("Money",money);
PlayerPrefs.SetInt("isMulti",isMulti ? 1 : 0);
}
}
if (isMulti == true)
{
money += 1000;
}
}
Выдает такую ошибку: