骑行部分代码重构
This commit is contained in:
parent
21d54a8a1a
commit
fa5a9961a8
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6cae07749732f9d4aa6831e43ea65d68
|
||||
guid: 04b83335f962c2745900aa55d8b8072c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
22512
Assets/Resources/UI/Prefab/Match/onlinePlayerNoScriptNv.prefab
Normal file
22512
Assets/Resources/UI/Prefab/Match/onlinePlayerNoScriptNv.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94a353e3a43182d4c81a470b4765b1e0
|
||||
guid: 21aee99f3e4d49040837bc6b626cac95
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
File diff suppressed because it is too large
Load Diff
22537
Assets/Resources/UI/Prefab/Match/onlinePlayerNv.prefab
Normal file
22537
Assets/Resources/UI/Prefab/Match/onlinePlayerNv.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fe2d472537f7874797d676190b7255a
|
||||
guid: b1ca9edfdf2a0c14b9088b4d0c401294
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
File diff suppressed because it is too large
Load Diff
@ -51,6 +51,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
protected double power;
|
||||
protected double elevation;
|
||||
protected double cadance;
|
||||
public int Sex { get; set; }
|
||||
protected int? heartRate { get; set; }
|
||||
public int ticks { get; set; }
|
||||
protected double totalDistance;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
string nickName;
|
||||
string weightKgStr;
|
||||
double diff = 0;
|
||||
|
||||
protected override void Init()
|
||||
{
|
||||
@ -73,8 +74,9 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
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;
|
||||
distance = _distance;
|
||||
@ -88,6 +90,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
power = Convert.ToInt32(_power);
|
||||
cadance = _cadence;
|
||||
ticks = _totalTicks;
|
||||
Sex = sex;
|
||||
}
|
||||
|
||||
public Vector2d Point { get; set; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user