摘要: c# yield关键字的用法 1.yield实现的功能 yield return: 先看下面的代码,通过yield return实现了类似用foreach遍历数组的功能,说明yield return也是用来实现迭代器的功能的。 using static System.Console; using S 阅读全文
posted @ 2022-04-07 22:46 yassine 阅读(160) 评论(0) 推荐(0) 编辑
摘要: ##事先声明 此框架由Tarodev编写,仅做记录 ##演示效果 ##脚本模块 ###PlayerExtra.cs脚本 using System.Collections; using System.Collections.Generic; using UnityEngine; namespace T 阅读全文
posted @ 2022-04-07 11:13 yassine 阅读(278) 评论(0) 推荐(0) 编辑