private void OnSwitchScoreFilterCB(GameObject gameObject) { AgeControlToggle component = gameObject.GetComponent <AgeControlToggle>(); this.CurrentScoreDefinition = (component.OnSwitchDataObject as GameScoreDefinition); for (int i = 0; i < this.ScoreFiltersTable.GetChildren().Count; i++) { ScoreFilterToggle component2 = this.ScoreFiltersTable.GetChildren()[i].GetComponent <ScoreFilterToggle>(); component2.Toggle.State = (component2.Toggle == component); } this.RefreshScores(); }
private void RefreshScoreFilter(AgeTransform tableitem, GameScoreDefinition gameScoreDefinition, int index) { ScoreFilterToggle component = tableitem.GetComponent <ScoreFilterToggle>(); component.RefreshContent(base.GuiService.GuiPanelHelper, gameScoreDefinition, base.gameObject); }