Time of Day 3.1.0.unitypackage

时间:2022-03-12 03:48:27
【文件属性】:

文件名称:Time of Day 3.1.0.unitypackage

文件大小:646B

文件格式:TXT

更新时间:2022-03-12 03:48:27

TimeOfDay

// Update is called once per frame void Update() { if (RaceTimeManager.RacePlayTime != 0) { TOD_Sky.Instance.Cycle.DateTime = ConvertLongDateTime(Long类型的时间戳); } } public static DateTime ConvertLongDateTime(long d) { DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); long lTime = long.Parse(d + "0000"); TimeSpan toNow = new TimeSpan(lTime); DateTime dtResult = dtStart.Add(toNow); return dtResult; }


网友评论