/// <summary> /// /// </summary> /// <param name="viewedTeamId">Team whose schedule we're viewing</param> /// <param name="matchInfo"></param> public void SetMatchInfo(ulong viewedTeamId, BS_MatchParams matchInfo) { Dbg.Assert(matchInfo.TeamIds.Count == 2); // find opposing team id ulong opposingTeamId = JLib.Game.GM_ObjectFinder.InvalidId; if (matchInfo.TeamIds[0] == viewedTeamId) { opposingTeamId = matchInfo.TeamIds[1]; } else if (matchInfo.TeamIds[1] == viewedTeamId) { opposingTeamId = matchInfo.TeamIds[0]; } else { Dbg.Assert(false, "viewed team is not in match info"); } BS_Team opposingTeam = PT_Game.Finder.Get <BS_Team>(opposingTeamId); _opposingTeamName.GetComponent <Text>().text = opposingTeam.DisplayName; _matchInfo = matchInfo; }
public void Set(BS_Team team) { _team = team; RebuildList(); }