对战结束显示自己是否DNF

This commit is contained in:
lishuo 2022-08-08 17:34:47 +08:00
parent 889ec8244e
commit 96c48d3cb3

View File

@ -732,8 +732,8 @@ public class GameRoomListController : PFUIPanel
t.transform.Find("Country").GetComponent<RawImage>().texture = UIManager.Instance.loginRegOptions.GetCountryImageByName(item.Country);
t.transform.Find("Name").GetComponent<Text>().text = item.NickName;
t.transform.Find("Timer").GetComponent<Text>().text = item.TotalTime;
t.transform.Find("DNF").gameObject.SetActive(item.IsDNF);
t.transform.Find("DNF_L").gameObject.SetActive(item.IsDNF);
t.transform.Find("DNF").gameObject.SetActive(item.IsDNF && item.UserId != App.CurrentUser.Id);
t.transform.Find("DNF_L").gameObject.SetActive(item.IsDNF && item.UserId == App.CurrentUser.Id);
}
}
}