Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to delay between lines in unity

yield return new WaitForSeconds(/*here add the amount of seconds you want*/);

/* Quick Note : do not use "void" if you're gonna do this form of delaying
   use "IEnumerator" instead 

  so for an example, use "IEnumerator ShootGun" Instead of "void ShootGun" */
 
PREVIOUS NEXT
Tagged: #delay #lines #unity
ADD COMMENT
Topic
Name
3+5 =