示例#1
0
 public void SetInactive()
 {
     ActiveOutline.SetActive(value: false);
     CountText.gameObject.SetActive(value: false);
     BucketSpriteSelector.GetComponent <Image>().color = new Color(1f, 1f, 1f, 0.5f);
     BgTintSelector.GetComponent <Image>().color       = new Color(1f, 1f, 1f, 0.5f);
 }
示例#2
0
 public void SetTeamData(PartyGameTeamEndGamePopupData.PartyGameTeamEndGamePopupTeamData teamData)
 {
     TeamNameText.text = Service.Get <Localizer>().GetTokenTranslation(teamData.TeamNameToken);
     if (teamData.IsShowingScore)
     {
         TeamScorePanel.SetActive(value: true);
         TeamScoreText.text = teamData.Score.ToString();
     }
     else if (TeamScorePanel != null)
     {
         TeamScorePanel.SetActive(value: false);
     }
     WinPanel.SetActive(teamData.IsWinningTeam);
     if (teamData.IsLocalPlayersTeam)
     {
         BackgroundTintSelector.SelectColor(teamData.TeamThemeId);
     }
     else
     {
         BackgroundTintSelector.GetComponent <Image>().enabled = false;
     }
     TeamIconSpriteSelector.SelectSprite(teamData.TeamThemeId);
 }