骑行界面字体
This commit is contained in:
1 parent
af63072f29
commit
82923fe4f8
13 files changed
+2390
-2188
No files matched your search
@@ -32,6 +32,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
panel = transform.Find("Panel").gameObject;
|
||||
mapName = transform.Find("Panel/MapName").GetComponent<Text>();
|
||||
distance = transform.Find("Panel/Distance").GetComponent<Text>();
|
||||
level = transform.Find("Panel/level/Text").GetComponent<Text>();
|
||||
elevaction = transform.Find("Panel/Elevaction").GetComponent<Text>();
|
||||
slope = transform.Find("Panel/Slope").GetComponent<Text>();
|
||||
@@ -48,13 +49,12 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
var map = mapApi.GetById(routeId);
|
||||
var route = map.data;
|
||||
|
||||
|
||||
mapName.text = route.Name;
|
||||
level.text = route.Hard;
|
||||
elevaction.text = route.EleDifference.ToString("g0");
|
||||
elevaction.text = Math.Round(route.EleDifference,0).ToString()+"FT";
|
||||
slope.text = Math.Round(route.AverageGrade,2).ToString() + "%";
|
||||
rideNum.text = route.TheHeat.ToString();
|
||||
|
||||
distance.text = route.Distance.ToString("f1")+"KM";
|
||||
var userList = mapApi.GetOnlineUserInfo(new int[] { route.UserId }).data;
|
||||
if (userList.Count > 0)
|
||||
{
|
||||
@@ -101,18 +101,18 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
return;
|
||||
}
|
||||
|
||||
if (targetAlpha != canvasGroup.alpha && depressFlag)
|
||||
{
|
||||
canvasGroup.alpha = Mathf.Lerp(canvasGroup.alpha, targetAlpha, alphaSpeed * Time.deltaTime);
|
||||
if (Mathf.Abs(targetAlpha - canvasGroup.alpha) <= 0.01f)
|
||||
{
|
||||
canvasGroup.alpha = targetAlpha;
|
||||
}
|
||||
if (canvasGroup.alpha == 0)
|
||||
{
|
||||
transform.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (targetAlpha != canvasGroup.alpha && depressFlag)
|
||||
{
|
||||
canvasGroup.alpha = Mathf.Lerp(canvasGroup.alpha, targetAlpha, alphaSpeed * Time.deltaTime);
|
||||
if (Mathf.Abs(targetAlpha - canvasGroup.alpha) <= 0.01f)
|
||||
{
|
||||
canvasGroup.alpha = targetAlpha;
|
||||
}
|
||||
if (canvasGroup.alpha == 0)
|
||||
{
|
||||
transform.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user