Answers for "how to get c# and unity to wait certain amount of time in a void"

C#
8

wait time in unity

using System.Collections;

private void Start()
{
	StartCoroutine(Wait());
}

IEnumerator Wait()
{
	//To wait, type this:
  
  	//Stuff before waiting
	yield return new WaitForSeconds(/*number of seconds*/);
  	//Stuff after waiting.
}
Posted by: Guest on July-12-2020

Code answers related to "how to get c# and unity to wait certain amount of time in a void"

C# Answers by Framework

Browse Popular Code Answers by Language