Jak czekać w C#
System.Threading.Thread.Sleep(Milliseconds);
Comfortable Caterpillar
System.Threading.Thread.Sleep(Milliseconds);
void Start()
{
StartCoroutine(waiter());
}
IEnumerator waiter()
{ //more just scroll down
transform.position = new Vector3(0, 0, 0);
yield return new WaitForSeconds(4);
transform.position = new Vector3(1, 5, 0);
}
void Start()
{
StartCoroutine(waiter());
}
IEnumerator waiter()
{
transform.position = new Vector3(0, 0, 0);
yield return new WaitForSeconds(4);
transform.position = new Vector3(1, 5, 0);
}