5.9修改暂存
This commit is contained in:
1 parent
cfa1cc4f7b
commit
edc629ed75
12 files changed
+5666
-2147
No files matched your search
@@ -99,7 +99,7 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
// m2.Find("Track/T4").localPosition.y,
|
||||
// m2.Find("Track/T5").localPosition.y,
|
||||
//};
|
||||
scrollRank = transform.Find("Rower/Modes/Scroll/M2/Rank/Scroll View").GetComponent<ScrollRect>();
|
||||
scrollRank = transform.Find("Rower/Modes/Scroll/M1/Rank/Scroll View").GetComponent<ScrollRect>();
|
||||
var countryJson = Resources.Load<TextAsset>("UI/flags-mini").text;
|
||||
countryList = JsonConvert.DeserializeObject<List<CountryModel>>(countryJson);
|
||||
}
|
||||
@@ -268,7 +268,7 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
}
|
||||
t.Find("Left/NickName").GetComponent<Text>().text = data.NickName;
|
||||
|
||||
if (data.list.Count == 0)
|
||||
if (data.list.Count == 0 || !GetComponent<RowerHomeScript>().openTimer)
|
||||
{
|
||||
t.Find("Left/Time").GetComponent<Text>().text = TimeSpan.FromSeconds(0).ToString(@"mm\:ss");
|
||||
}
|
||||
@@ -971,7 +971,7 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
i++;
|
||||
}
|
||||
}
|
||||
transform.Find("Rower/Modes/Scroll/M2/Rank/MyRank").GetComponent<Text>().text = $"<color=#f93086>{userList.FindIndex(x => x.isMine) + 1}</color> / {userList.Count}";
|
||||
transform.Find("Rower/Modes/Scroll/M1/Rank/MyRank").GetComponent<Text>().text = $"<color=#f93086>{userList.FindIndex(x => x.isMine) + 1}</color> / {userList.Count}";
|
||||
}
|
||||
|
||||
// 0 单人 1 影子
|
||||
@@ -1173,7 +1173,7 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
void Update()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
//return;
|
||||
return;
|
||||
timer -= Time.deltaTime;
|
||||
if (timer < 0)
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ public class RowerWelldone : PFUIPanel
|
||||
game.transform.Find("Content/Rank").GetComponent<Text>().text = (i + 1).ToString("00");
|
||||
game.transform.Find("Content/NickName").GetComponent<Text>().text = item.NickName;
|
||||
Utils.DisplayImageTempDict(game.transform.Find("Content/Avatar").GetComponent<RawImage>(), item.WxHeadImg, caches);
|
||||
game.transform.Find("Content/Time").GetComponent<Text>().text = data.info.Type == 1 ? TimeSpan.FromSeconds(item.Time).ToString(@"hh\:mm\:ss") : item.TotalDistance.ToString("#0M");
|
||||
game.transform.Find("Content/Time").GetComponent<Text>().text = data.info.Type == 1 ? TimeSpan.FromSeconds(item.Ticks).ToString(@"hh\:mm\:ss") : item.TotalDistance.ToString("#0M");
|
||||
game.transform.SetParent(rankContent);
|
||||
game.transform.localScale = Vector3.one;
|
||||
game.SetActive(true);
|
||||
|
||||
Reference in new issue
Block a user