Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to make a method wait in unity

public float timeLeft = 30.0f

void Update()
{
  timeLeft -= Time.deltaTime;
            if (timeLeft < 0)
            {
            //Do your method here
            }
}
 
PREVIOUS NEXT
Tagged: #method #wait #unity
ADD COMMENT
Topic
Name
3+5 =