public void Refresh(bool bOnlyPic) { int id = Random.Range(1, 26); string str = "STR_LOADING_TIPS_" + id; Tip.text = CommonFunction.GetConstString(str); TipSimple.text = CommonFunction.GetConstString(str); LblNarrowTip.text = TipSimple.text; LblMultiBaseTip.text = TipSimple.text; if (bOnlyPic) { GetComponent <Animator>().enabled = false; NGUITools.SetActiveChildren(Window, false); ResourceLoadManager.Instance.LoadAloneImage(GameSystem.Instance.CommonConfig.GetString("gPracticeBg"), _OnLoadTexFinish); if (GameSystem.Instance.isNewPlayer) { BGSimple.gameObject.SetActive(false); TipSimple.gameObject.SetActive(false); } } else { TipSimple.gameObject.SetActive(false); BGSimple.gameObject.SetActive(false); GameMatch curMatch = GameSystem.Instance.mClient.mCurMatch; Title.spriteName = curMatch.LeagueTypeToSpriteName(); Title.MakePixelPerfect(); Debug.Log("Refresh team"); if (pvp) { if (myName != null && rivalName != null) { MyTeamName.text = myName; RivalTeamName.text = rivalName; } RefreshMyTeam_PVP(); RefreshRivalTeam_PVP(); GameMatch_PVP match_pvp = curMatch as GameMatch_PVP; if (curMatch.leagueType == GameMatch.LeagueType.eQualifyingNewer || curMatch.leagueType == GameMatch.LeagueType.ePVP ) { MyTeamName.text = CommonFunction.GetConstString("STR_HOME"); RivalTeamName.text = CommonFunction.GetConstString("STR_PEER"); } } else { if (curMatch.leagueType == GameMatch.LeagueType.eRegular1V1 && curMatch.GetMatchType() == GameMatch.Type.eCareer3On3) { MyTeamName.text = MainPlayer.Instance.Name; RivalTeamName.text = (string)(LuaScriptMgr.Instance.GetLuaTable("Regular1V1Handler")["npcRivalName"]); } else if (curMatch.leagueType == GameMatch.LeagueType.eQualifyingNew && curMatch.GetMatchType() == GameMatch.Type.eCareer3On3) { MyTeamName.text = MainPlayer.Instance.Name; RivalTeamName.text = (string)(LuaScriptMgr.Instance.GetLuaTable("UIQualifyingNew")["npcRivalName"]); } RefreshMyTeam(); RefreshRivalTeam(); } SetTeamMatesName(); SetRivalName(); SetTeamMatesScore(); SetRivalScore(); LoadScene(); } }