How to add a delay in a C# unity script
I have these lines of code in an update function in a C# Unity script: I have tried Thread.Sleep(milliseconds) and Waitforseconds(). But I have had no luck in making them work. It would be greatly appreciated if anyone could show me a solution to this problem. Thanks, Isaac