UnityVersion : 2017.3.1f1
when I call
StartCoroutine(CoPP());
Unity just Freezed.
Is it bug? or not?
how to solve that problem?
public IEnumerator CoPP()
{
Debug.Log(1);
var task = HelloAsync();
Debug.Log(2);
yield return task;
Debug.Log(3);
Debug.Log(task.Result);
}
async Task HelloAsync()
{
await Task.Delay(TimeSpan.FromSeconds(1));
return 9999;
}