From 988e7226f6799263fed8e8e2afe04288f357df29 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Fri, 04 Dec 2020 17:43:30 +0800 Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master --- Assets/Scripts/UI/FinalPanel/FinalPanelItem.cs | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/UI/FinalPanel/FinalPanelItem.cs b/Assets/Scripts/UI/FinalPanel/FinalPanelItem.cs index 9db4389..7d9d7d0 100644 --- a/Assets/Scripts/UI/FinalPanel/FinalPanelItem.cs +++ b/Assets/Scripts/UI/FinalPanel/FinalPanelItem.cs @@ -23,6 +23,10 @@ private RectTransform rt; + //public TextMeshProUGUI rankUpbj; + + //bool isSelfPlayer; + /// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. @@ -47,6 +51,7 @@ if (data.httpInfo.username.Equals(GameConfig.Imei)) { + //isSelfPlayer = true; //是自己 if (backGround.sprite != tmpBackGround) backGround.sprite = tmpBackGround; @@ -59,6 +64,8 @@ } else { + //isSelfPlayer = false; + if (backGround.sprite != otherBackGround) backGround.sprite = otherBackGround; if (playerNameTxt.color != otherColor) @@ -77,6 +84,27 @@ } } + // /// <summary> + // /// 检查排名上升 + // /// </summary> + // /// <param name="rankUp"></param> + // public void CheckRank(int rankUp) + // { + // if (rankUp > 0) + // { + // Debug.Log($"排名上升:{rankUp} isSelfPlayer:{isSelfPlayer} rankUpbj.gameObject.activeSelf:{rankUpbj.gameObject.activeSelf}"); + // if (isSelfPlayer && !rankUpbj.gameObject.activeSelf) + // { + // rankUpbj.gameObject.SetActive(true); + // rankUpbj.text = rankUp.ToString(); + // } + // } + // else if (rankUpbj.gameObject.activeSelf) + // { + // rankUpbj.gameObject.SetActive(false); + // } + // } + public void SetPos() { backGround.rectTransform.anchoredPosition = new UnityEngine.Vector2(720, 0); -- Gitblit v1.9.1