how to set a delay before a function can be called again in unity code example
Example: how to delay something in c# unity
Invoke("DoSomething", 2);//this will happen after 2 seconds
Invoke("DoSomething", 2);//this will happen after 2 seconds