P
P
Provodaxgod2022-03-26 12:50:52
C++ / C#
Provodaxgod, 2022-03-26 12:50:52

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

1 answer(s)
V
Vasily Bannikov, 2022-03-26
@vabka

You sealed up.
Instead of Tostring should be ToString

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question