Answers for "unity coroutine wait for seconds running again"

C#
2

wait for seconds unity

//In the example below the script will right "Hello" and 3 seconds later write "Goodbye" in the console
Start()
{
  	//Call the function Example()
	StartCoroutine(Example());
}

Example()
{
  	Debug.Log("Hello");
  	//wait 3 seconds
	yield return new WaitForSeconds(3);
  	Debug.Log("Goodbye");
}
Posted by: Guest on September-30-2020

Code answers related to "unity coroutine wait for seconds running again"

C# Answers by Framework

Browse Popular Code Answers by Language