Como fazer com que o script aguarde / durma de maneira simples na unidade
Como pode colocar entre oTextUI.text = ....
uma função dormir, por esperar 3 segundos entre cada frase?
public Text GuessUI;
public Text TextUI;
[...truncated...]
TextUI.text = "Welcome to Number Wizard!";
TextUI.text = ("The highest number you can pick is " + max);
TextUI.text = ("The lowest number you can pick is " + min);
Eu já tentei várias coisas, mas não funcionou, como este:
TextUI.text = "Welcome to Number Wizard!";
yield WaitForSeconds (3);
TextUI.text = ("The highest number you can pick is " + max);
yield WaitForSeconds (3);
TextUI.text = ("The lowest number you can pick is " + min);
No bash seria:
echo "Welcome to Number Wizard!"
sleep 3
echo "The highest number you can pick is 1000"
sleep 3
.....
mas não consigo descobrir como faço isso no Unity with C #