Answers for "time.sleep c# equivalent unity"

C#
3

unity c# delay function

void start()
{
  Invoke("DoSomething", 2);//this will happen after 2 seconds
}
void DoSomething()
{
	Debug.Log("2 seconds has passed!");
}
Posted by: Guest on October-20-2021

C# Answers by Framework

Browse Popular Code Answers by Language