Не могу понять что не так в коде выдает ошибку NullReferenceException: Object reference not set to an instance of an object main.Update () (at Assets/Skripts/main.cs:34) вот сам код using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System; public class main : MonoBehaviour { public double money = 0.000f; public float moneyperclick = 0.001f; public float moneypersecond = 0.000f; public float timer = 1.0f; private float lasttimer; //BOOSTERS public Button fstBoostButton; public Text fstboostertext; public float fstboosterprice = 0.001f; public Text textmoney; // Start is called before the first frame update void Start() { lasttimer = timer; } // Update is called once per frame void Update() { if (money = fstboosterprice) { money -= fstboosterprice; fstboosterprice *= 2; moneypersecond += 0.002f; } } }

sevenfoldblood sevenfoldblood    3   16.06.2020 00:48    0

Другие вопросы по теме Информатика