how to delay an if stateement in unity code example Example: delay in unity Invoke("functionname", seconds); // this is for C#