Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity c# delay function

void start()
{
  Invoke("DoSomething", 2);//this will happen after 2 seconds
}
void DoSomething()
{
	Debug.Log("2 seconds has passed!");
}
 
PREVIOUS NEXT
Tagged: #unity #delay #function
ADD COMMENT
Topic
Name
9+9 =