中文版本

This commit is contained in:
lishuo committed 2021-11-10 18:13:38 +08:00
1 parent 8e88b4adba
commit 51834b709c
85 files changed
+12545 -4847

No files matched your search

@@ -222,7 +222,7 @@ namespace Assets.Scenes.Ride.Scripts
//比赛状态
CompetitionStatus.text = competition.StatusVlaue.ToString();
//参赛选手
Contestant.text = competition.UserList.Count.ToString() + "Riders";
Contestant.text = competition.UserList.Count.ToString() + App.GetLocalString("Riders");
ShowPlayers(competition.UserList);
//路书描述
mapDescText.text = GetMaxString(competition.Dec, 400);
@@ -335,7 +335,7 @@ namespace Assets.Scenes.Ride.Scripts
_raceStart = competition.Status == 3;
_canEnter = competition.CanEnter;
Contestant.text = competition.UserList.Count.ToString() + "Riders";
Contestant.text = competition.UserList.Count.ToString() + App.GetLocalString("Riders");
ShowPlayers(competition.UserList);
}
}
@@ -36,7 +36,7 @@ namespace Assets.Scenes.Ride.Scripts
//比赛开始前倒计时
if (count >= 0 && !competitionModel.recorderData.Saved)
{
ShowCountDown(count, "Get Ready!");//显示倒计时面板信息
ShowCountDown(count, App.GetLocalString("Get Ready!"));//显示倒计时面板信息
Timer.gameObject.SetActive(false);
TimerTitle.gameObject.SetActive(false);
}
@@ -50,7 +50,7 @@ namespace Assets.Scenes.Ride.Scripts
{
#if UNITY_IOS || UNITY_ANDROID
//显示倒计时面板信息
ShowCountDown(s.Item1, "Time Limit");
ShowCountDown(s.Item1, App.GetLocalString("Time Limit"));
#else
ShowCountDown(s.Item1, "Get The First Place. Time Limit");
#endif
@@ -59,7 +59,7 @@ namespace Assets.Scenes.Ride.Scripts
{
//显示倒计时面板信息
//ShowCountDown(s.Item1, "remaining");
ShowCountDown(s.Item1, "Remaining Time");
ShowCountDown(s.Item1, App.GetLocalString("Remaining Time"));
}
//显示当前选手骑行时间
Timer.gameObject.SetActive(true);
@@ -409,7 +409,7 @@ namespace Assets.Scenes.Ride.Scripts
heartRate.text = (currentPlayer.HeartRate ?? 0).ToString();
candance.text = $"{Math.Round(currentPlayer.Cadance, 0)}";
preSlopeText.text = $"{Math.Round(currentPlayer.PreSlope, 1)}%";
currentSlopeToatalDistanceText.text = $"Total:{Math.Round(currentPlayer.CurrentDistance, 0)}M";
currentSlopeToatalDistanceText.text = $"{App.GetLocalString("Total")}:{Math.Round(currentPlayer.CurrentDistance, 0)}M";
//坡度相关数据
nextSlopeText.text = Math.Round(currentPlayer.NextSlope, 1).ToString() + "%";
//nextSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.NextSlopeDistance, 0, "-{0}M");
@@ -499,9 +499,9 @@ public class CyclingController : DeviceServiceMonoBase
public void GameStart()
{
var check = CheckAnt();
//#if UNITY_EDITOR
// check = true;
//#endif
#if UNITY_EDITOR
check = true;
#endif
if (check)
{
singleUIManager.StartRide();