多人动画位移计算和动画帧数偏差公式调整

This commit is contained in:
lishuo committed 2022-04-06 19:27:45 +08:00
1 parent efdc95ed3d
commit d938a0c8be
10 files changed
+2555 -2156

No files matched your search

@@ -445,5 +445,33 @@ namespace Assets.Scenes.Ride.Scripts
var url = $"https://api.mapbox.com/styles/v1/juzetest/ckmkdjwsa1nvt17nr1ps4fqgs/static/path-4+fff-1({encodeline})/auto/1280x768?access_token={App.MapBoxAccessToken}&padding=200&pitch=30";
return url;
}
/// <summary>
/// 获取日 周 月第一天
/// </summary>
/// <param name="now">截止日期</param>
/// <param name="type">日:day周:week月:month</param>
/// <returns></returns>
public static DateTime GetStartTime(DateTime now,string type = "month")
{
//日
DateTime startTime = new DateTime(now.Year,now.Month,now.Day);
if (type.Equals("week"))
{
//周
var week = now.DayOfWeek;
for (int i = 0; i < 7; i++)
{
startTime = now.AddDays(-i);
if (startTime.DayOfWeek != week)
break;
}
}
if (type.Equals("month"))
{
//月
startTime = new DateTime(now.Year, now.Month, 1);
}
return startTime;
}
}
}