how to add delay to a function c# unity code example Example: delay in unity Invoke("functionname", seconds); // this is for C#