unity 3d wait 1 second code example
Example: 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.
}