how to make a delay in unity code example
Example 1: Time delay C# unity
void start()
StartCoroutine(Text());
IEnumerator Text() // <- its a standalone method
{
Debug.Log("Hello")
yield return new WaitForSeconds(3)
Debug.Log("ByeBye")
}
Example 2: delay in unity
Invoke("functionname", seconds);
// this is for C#
Example 3: how to delay something in c# unity
Invoke("DoSomething", 2);//this will happen after 2 seconds