Answers for "does coroutine wait unity"

C#
3

unity how to wait for seconds without coroutine

void CallMe() {
  	// Invoke("MethodName", Delay seconds as float);
	Invoke("CallMeWithWait", 1f);
}

void CallMeWithWait() {
	// Do something
}
Posted by: Guest on July-01-2021
1

unity waituntil coroutine

// WaitUntil example:
    
    void Start()
    {
        StartCoroutine(WaitALittle());
    }

    IEnumerator WaitALittle()
    {
        yield return new WaitUntil(() => health == 0);
        DoStuff();
    }
Posted by: Guest on June-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language