Answer the question
In order to leave comments, you need to log in
How to make code that repeats infinitely in C#?
Hello, I need to make this code repeat indefinitely without using loops (Unity freezes when using loops)
public Text myText;
public static int Text ;
void Start()
{
gameObject.GetComponent<Text>();
// ------------------------------------------------------------ вот это место
Text = 1000;
myText.text = "$ : " + Text ;
Text++;
Thread.Sleep(5000);
//------------------------------------------------------------------------------------------------
}
Answer the question
In order to leave comments, you need to log in
Formulate the problem correctly and you can easily find the answer
answers.unity.com/answers/1220845/view.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question