
Code
Ricky_yyy
为游戏而生,热爱你的热爱!
展开
-
【Code】时间戳转换天时分秒字符串
这个算是开发的非常常用的功能了,网上都很轻易的搜索到,我也就不再啰嗦原理如何,直接上代码,算是记录一下吧。 using UnityEngine; using System; public class Timer { private readonly DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)原创 2015-06-20 15:38:57 · 2337 阅读 · 0 评论 -
【C#】基于线程安全的List随机乱序扩展方法
首先抛出个问题,怎么获得一个既安全有效,又方便调用的乱序List呢? 其实代码很简单,但又非常有意思,如下所示: using System; using System.Text; using System.Threading; using System.Collections.Generic; public static class ThreadSafeRandom { [T...原创 2018-12-18 01:14:01 · 1465 阅读 · 0 评论