static public void ShowText(LobbyToolTipInfo info) { if (mInstance) { mInstance.SetText(info); } }
void SetText(LobbyToolTipInfo info) { if (null != info) { List <string> strList = info.ToList(); mContent.SetActive(true); mLbRoomNumber.text = strList[0].Length > 0 ? strList[0] : "N/A"; mLbGameMode.text = strList[1].Length > 0 ? strList[0] : "N/A"; mLbMapName.text = strList[2].Length > 0 ? strList[0] : "N/A"; mLbTeamNo.text = strList[3].Length > 0 ? strList[0] : "N/A"; mLbSeedNo.text = strList[4].Length > 0 ? strList[0] : "N/A"; mLbAlienCamp.text = strList[5].Length > 0 ? strList[0] : "N/A"; mLbTown.text = strList[6].Length > 0 ? strList[0] : "N/A"; mLbMapSize.text = strList[7].Length > 0 ? strList[0] : "N/A"; mLbElevation.text = strList[8].Length > 0 ? strList[0] : "N/A"; } else { mContent.SetActive(false); } }