Answer the question
In order to leave comments, you need to log in
What to do if you get error CS1061?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class NewBehaviourScript : MonoBehaviour
{
public double money = 0.000f;
public float moneyperclick = 0.001f;
public Text textmoney;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
money = Math.Round(money, 3);
textmoney.text = money.Tostring("0.000");
}
public void Click()
{
money += moneyperclick;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question