初版ui提交
This commit is contained in:
1 parent
b3b882c51e
commit
57940568c9
85 files changed
+76969
-1624
No files matched your search
@@ -12,6 +12,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.RiderModels
|
||||
public override RiderType riderType => RiderType.Online;
|
||||
|
||||
public double PreDistance { get; set; } = 0;
|
||||
public double Speed { get; set; } = 0;
|
||||
public double WeightKg { get; set; } = 0;
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
@@ -11,6 +11,8 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using Mapbox.Utils;
|
||||
using TurfCS;
|
||||
|
||||
namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
@@ -24,6 +26,12 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
return path;
|
||||
}
|
||||
public double Distance(Vector2d from, Vector2d to)
|
||||
{
|
||||
var pt1 = Turf.Point(new double[] { from.x, from.y });
|
||||
var pt2 = Turf.Point(new double[] { to.x, to.y });
|
||||
return Turf.Distance(pt1, pt2);
|
||||
}
|
||||
public static string SubStr(string str, int length)
|
||||
{
|
||||
var index = 0;
|
||||
|
||||
Reference in new issue
Block a user