摘要: 主要参考 http://catlikecoding.com/unity/tutorials/ 教程: Pool类和Object类; Pool.cs 负责管理一个ObjectList 行为: GetPool获取static Pool GetObject AddObject Object.cs 给外部 阅读全文
posted @ 2017-03-23 19:41 sun_dust_shadow 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 主要转载直乎链接: https://zhuanlan.zhihu.com/p/19972689 主要是那两张图: **** : https://www.sohu.com/a/148756513_468635 unity在跨平台上并没有使用mono vm,而是使用了 IL2CPP vm, 各个平台对c 阅读全文
posted @ 2017-02-21 11:56 sun_dust_shadow 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: 参考 《编写高质量代码:改善C#程序的157个建议》 , 尽量使用FCL中的委托声明。 FCL: FrameWork Class Library 三种常用:Action、Func、Predicate 小例子: 1.Action :无返回值 2.Func<T1,T2....,out Tn>:有返回值, 阅读全文
posted @ 2016-12-12 20:30 sun_dust_shadow 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 显示保留一位小数 阅读全文
posted @ 2016-12-06 20:44 sun_dust_shadow 阅读(8836) 评论(0) 推荐(0) 编辑
摘要: C#日常开发 阅读全文
posted @ 2016-03-28 17:42 sun_dust_shadow 阅读(1209) 评论(0) 推荐(0) 编辑