unity wait until code example
Example 1: delay in unity
Invoke("functionname", seconds);
// this is for C#
Example 2: how to pause physics in unity c#
Physics.autoSimulation = false;
Invoke("functionname", seconds);
// this is for C#
Physics.autoSimulation = false;