Answers for "how to make a method wait in unity"

C#
3

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
            }
}
Posted by: Guest on February-22-2021

Code answers related to "how to make a method wait in unity"

C# Answers by Framework

Browse Popular Code Answers by Language