骑行部分代码重构

This commit is contained in:
lishuo 2023-04-17 11:20:22 +08:00
parent 21d54a8a1a
commit fa5a9961a8
11 changed files with 67240 additions and 28875 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 6cae07749732f9d4aa6831e43ea65d68 guid: 04b83335f962c2745900aa55d8b8072c
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 94a353e3a43182d4c81a470b4765b1e0 guid: 21aee99f3e4d49040837bc6b626cac95
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 2fe2d472537f7874797d676190b7255a guid: b1ca9edfdf2a0c14b9088b4d0c401294
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

File diff suppressed because it is too large Load Diff

View File

@ -51,6 +51,7 @@ namespace Assets.Scenes.Ride.Scripts
protected double power; protected double power;
protected double elevation; protected double elevation;
protected double cadance; protected double cadance;
public int Sex { get; set; }
protected int? heartRate { get; set; } protected int? heartRate { get; set; }
public int ticks { get; set; } public int ticks { get; set; }
protected double totalDistance; protected double totalDistance;

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@ namespace Assets.Scenes.Ride.Scripts
string nickName; string nickName;
string weightKgStr; string weightKgStr;
double diff = 0;
protected override void Init() protected override void Init()
{ {
@ -73,8 +74,9 @@ namespace Assets.Scenes.Ride.Scripts
diff = 0; diff = 0;
} }
} }
double diff = 0;
public void SetDataSource(double _totalDistance, double _distance, double _power, double _heartRate, double _cadence,int _totalTicks, string Name,double weightKg,Vector2d point,int index=0)
public void SetDataSource(double _totalDistance, double _distance, double _power, double _heartRate, double _cadence,int _totalTicks, string Name,double weightKg,Vector2d point,int index=0,int sex=0)
{ {
totalDistance = _totalDistance; totalDistance = _totalDistance;
distance = _distance; distance = _distance;
@ -88,6 +90,7 @@ namespace Assets.Scenes.Ride.Scripts
power = Convert.ToInt32(_power); power = Convert.ToInt32(_power);
cadance = _cadence; cadance = _cadence;
ticks = _totalTicks; ticks = _totalTicks;
Sex = sex;
} }
public Vector2d Point { get; set; } public Vector2d Point { get; set; }