协程
协程协程分时执行,不卡主线程
使用场景异步加载
异步下载
场景异步加载
批量创建防止卡顿
协程函数123456IEnumerator MyCoroutine(int i, string str){ yield return new WaitForSeconds(5f); }
开始协程1Coroutine c1 = StartCotoutine(MyCoroutine(1,"123"));
关闭协程1StopAllCoroutines();
12关闭指定携程StopCoroutine(c1);
返回值12345678910111213141516171819202122 1.下一帧执行 yield return 数字; yield return null; 在Update和LateUpdate之间执行 2.等待指定秒后执行 yield return new WaitForSeconds(秒); 在Update和LateUpdate之间执行 3.等待下一个固定物理帧更新时执行 ...
c#学习笔记
c#一、c#程序基本结构1.1命名空间
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment