这个是C#的新特性,在unity2017中,需要更改PlayerSeting的.Net框架版本
然后使用如下:
async void Start () { Debug.Log("Start"); await Task.Delay(5000); Debug.Log("Continue"); }