解决相机抖动和人物移动动画不流畅的问题
This commit is contained in:
1 parent
0ab0e99597
commit
42fa59d103
24 files changed
+154640
-457
No files matched your search
@@ -6,6 +6,28 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
public class Helper
|
||||
{
|
||||
public static string FormatTicks(int seconds)
|
||||
{
|
||||
int h, m, s;
|
||||
h = seconds / 3600;
|
||||
m = (seconds - (3600 * h)) / 60;
|
||||
s = seconds - (3600 * h + 60 * m);
|
||||
string H, M, S;
|
||||
H = M = S = string.Empty;
|
||||
if (h < 10)
|
||||
H = "0" + h;
|
||||
else
|
||||
H = h.ToString();
|
||||
if (m < 10)
|
||||
M = "0" + m;
|
||||
else
|
||||
M = m.ToString();
|
||||
if (s < 10)
|
||||
S = "0" + s;
|
||||
else
|
||||
S = s.ToString();
|
||||
return $"{H}:{M}:{S}";
|
||||
}
|
||||
/// <summary>
|
||||
/// 计算速度
|
||||
/// 参考 http://bikecalculator.com/index.html
|
||||
|
||||
Reference in new issue
Block a user