赛事角标刷新;处理弹窗层次问题
This commit is contained in:
1 parent
5a148c28a8
commit
50ad74bb09
8 files changed
+300
-12
No files matched your search
@@ -193,22 +193,27 @@ public class RaceItemScript : MonoBehaviour
|
||||
var status = transform.Find("Status");
|
||||
if (mapCompetition.Status <= 1)
|
||||
{
|
||||
status.gameObject.SetActive(false);
|
||||
status.GetComponent<CanvasGroup>().alpha = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
status.GetComponent<RawImage>().color = Utils.HexToColorHtml(statusColorDict[mapCompetition.Status]);
|
||||
if (mapCompetition.Status == 2 && !mapCompetition.HasJoin)
|
||||
{
|
||||
status.gameObject.SetActive(false);
|
||||
status.GetComponent<CanvasGroup>().alpha = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
status.gameObject.SetActive(true);
|
||||
status.GetComponent<CanvasGroup>().alpha = 1;
|
||||
status.Find("Text").GetComponent<Text>().text =
|
||||
mapCompetition.Status == 2?"Registered":mapCompetition.StatusVlaue;
|
||||
}
|
||||
}
|
||||
if (status.GetComponent<ContentFitterController>())
|
||||
{
|
||||
Debug.Log("cf刷新一次1");
|
||||
status.GetComponent<ContentFitterController>().Refresh();
|
||||
}
|
||||
}
|
||||
float? localY = null;
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
|
||||
Reference in new issue
Block a user