title: How to add a delay in a C# unity script
body: <p>I have these lines of code in an update function in a C# Unity script:</p>
  
  <pre><code>variable1 = VALUE;
  [I want to add a delay here]
  variable 2 = VALUE;
  </code></pre>
  
  <p>I have tried Thread.Sleep(milliseconds) and Waitforseconds().
  But I have had no luck in making them work.</p>
  
  <p>It would be greatly appreciated if anyone could show me a solution to this problem.</p>
  
  <p>Thanks, 
  Isaac</p>