unity do after time code example
Example 1: delay in unity
Invoke("functionname", seconds);
// this is for C#
Example 2: unity c# method after delay
Invoke("DoSomething", 2);//this will happen after 2 seconds
Invoke("functionname", seconds);
// this is for C#
Invoke("DoSomething", 2);//this will happen after 2 seconds