Answers for "unity coroutine c#"

C#
20

unity coroutine

void Start() {
  StartCoroutine("func"); // Start coroutine named "func"
}

IEnumerator func() {
  Debug.Log("Hello");
  yield return new WaitForSecondsRealtime(1); //Wait 1 second
  Debug.Log("World");
}
Posted by: Guest on June-08-2020

Code answers related to "unity coroutine c#"

C# Answers by Framework

Browse Popular Code Answers by Language